Debian Codegraph @

clang/test/Parser/cxx-namespace-after-missing-semicolon.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 UNKNOWN_MACRO_1("z", 1) // expected-error {{a type specifier is required for all declarations}}
4 // expected-error@-1 {{expected ';' after top level declarator}}
5
6 namespace foo {
7 class bar {};
8 }
9
10 int variable = 0; // ok
11 foo::bar something; // ok
12
13 UNKNOWN_MACRO_2(void) // expected-error {{a type specifier is required for all declarations}}
14 // expected-error@-1 {{expected ';' after top level declarator}}
15
16 namespace baz {
17 using Bool = bool;
18 }
19
20 int variable2 = 2; // ok
21 const baz::Bool flag = false; // ok