TargetParser: AArch64: Add part numbers for Apple CPUs.
[llvm-project.git] / clang / test / Parser / cxx-undeclared-identifier.cpp
blob4751dadd1c4985880862b68f8fe5c9be0d190337
1 // RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
3 namespace ImplicitInt {
4 static a(4); // expected-error {{a type specifier is required}}
5 b(int n); // expected-error {{a type specifier is required}}
6 c (*p)[]; // expected-error {{unknown type name 'c'}}
7 itn f(char *p, *q); // expected-error {{unknown type name 'itn'}} expected-error {{a type specifier is required}}
9 struct S {
10 void f();
12 S::f() {} // expected-error {{a type specifier is required}}
15 // PR7180
16 int f(a::b::c); // expected-error {{use of undeclared identifier 'a'}}
18 class Foo::Bar { // expected-error {{use of undeclared identifier 'Foo'}}
19 // expected-error {{expected unqualified-id}}