llvm-project
19 строк · 698.0 Байт
1// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
2
3namespace ImplicitInt {4static a(4); // expected-error {{a type specifier is required}}5b(int n); // expected-error {{a type specifier is required}}6c (*p)[]; // expected-error {{unknown type name 'c'}}7itn f(char *p, *q); // expected-error {{unknown type name 'itn'}} expected-error {{a type specifier is required}}8
9struct S {10void f();11};12S::f() {} // expected-error {{a type specifier is required}}13}
14
15// PR7180
16int f(a::b::c); // expected-error {{use of undeclared identifier 'a'}}17
18class Foo::Bar { // expected-error {{use of undeclared identifier 'Foo'}}19// expected-error {{expected unqualified-id}}20