1 // RUN: clang-cc -fsyntax-only -verify %s
3 int f(); // expected-note{{previous declaration is here}}
10 double f(); // expected-error{{functions that differ only in their return type cannot be overloaded}}
19 int y
= Ns::Enumerator
;
22 float f(int); // expected-note{{previous declaration is here}}
26 double f(int); // expected-error{{functions that differ only in their return type cannot be overloaded}}
47 void N::f1::foo(int i
) {
64 int i1
= N::f1::member
;
65 typedef struct N::f1 type1
;
66 int i2
= N::f2::member
;
67 typedef struct N::f2 type2
;
73 int v4
= N::f1::member
;
78 typedef int f2_type(int, int);
81 ::f2_type(1, 2); // expected-error {{function-style cast to a builtin type can only take one argument}}
95 a::a::i
= 3; // expected-error{{no member named 'i'}}
99 struct Undef
{ // expected-note{{definition of 'struct Undef' is not complete until the closing '}'}}
104 static int size
= sizeof(Undef
); // expected-error{{invalid application of 'sizeof' to an incomplete type 'struct Undef'}}
110 return sizeof(Undef
);