1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc namespace ImplicitInt { 4*f4a2713aSLionel Sambuc static a(4); // expected-error {{requires a type specifier}} 5*f4a2713aSLionel Sambuc b(int n); // expected-error {{requires a type specifier}} 6*f4a2713aSLionel Sambuc c (*p)[]; // expected-error {{unknown type name 'c'}} 7*f4a2713aSLionel Sambuc itn f(char *p, *q); // expected-error {{unknown type name 'itn'}} expected-error {{requires a type specifier}} 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambuc struct S { 10*f4a2713aSLionel Sambuc void f(); 11*f4a2713aSLionel Sambuc }; f()12*f4a2713aSLionel Sambuc S::f() {} // expected-error {{requires a type specifier}} 13*f4a2713aSLionel Sambuc } 14*f4a2713aSLionel Sambuc 15*f4a2713aSLionel Sambuc // PR7180 16*f4a2713aSLionel Sambuc int f(a::b::c); // expected-error {{use of undeclared identifier 'a'}} 17*f4a2713aSLionel Sambuc 18*f4a2713aSLionel Sambuc class Foo::Bar { // expected-error {{use of undeclared identifier 'Foo'}} \ 19*f4a2713aSLionel Sambuc // expected-error {{expected ';' after class}} 20