1 // RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
13 S w(int(a)); // expected-warning{{disambiguated}}
15 S x1(int()); // expected-warning{{disambiguated}}
25 void *operator new(__SIZE_TYPE__, int);
28 new (int(*p)) int; //new-placement expression
29 new (int(*[x])); //new type-id
33 template <class T> // expected-note{{here}}
37 S4<int()> x; //type-id
38 S4<int(1)> y; // expected-error{{must be a type}}
43 (void)sizeof(int(1)); //expression
44 // FIXME: should we make this an error rather than a warning?
45 // (It affects SFINAE)
46 (void)sizeof(int()); // expected-warning{{function type}}
52 (void)(int(1)); //expression
53 (void)(int())1; // expected-error{{to 'int ()'}}
58 void f7(int(C7)) { } // expected-note{{candidate}}
61 f7(1); // expected-error{{no matching function}}
65 void h7(int *(C7[10])) { } // expected-note{{previous}}
66 void h7(int *(*_fp)(C7 _parm[10])) { } // expected-error{{redefinition}}
69 static bool const value = false;
72 int v(int(S5::value)); // expected-warning{{disambiguated}} expected-error{{parameter declarator cannot be qualified}}