// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
void // expected-error {{unexpected namespace name 'A': expected expression}}
int A; // expected-error {{redefinition of 'A' as different kind of symbol}}
; // expected-error {{redefinition of 'A' as different kind of symbol}}
; // expected-note {{previous definition is here}}
// expected-note@-1 {{candidate function (the implicit copy assignment operator) not viable}}
// expected-note@-3 {{candidate function (the implicit move assignment operator) not viable}}
void ; // expected-note {{previous definition is here}}
// expected-error {{redefinition of 'C' as different kind of symbol}}
// expected-error {{redefinition of 'B' as different kind of symbol}}
static foo::x test1; // ok
static foo::X test2; // typo: expected-error {{no type named 'X' in}}