• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching +full:- +full:wno +full:- +full:error

1 // RUN: %clang_cc1 -Wno-int-to-pointer-cast -fsyntax-only -verify -pedantic-errors %s
2 // RUN: %clang_cc1 -Wno-int-to-pointer-cast -fsyntax-only -verify -pedantic-errors -std=gnu++98 %s
3 // RUN: %clang_cc1 -Wno-int-to-pointer-cast -fsyntax-only -verify -pedantic-errors -std=gnu++11 %s
4 // RUN: %clang_cc1 -Wno-int-to-pointer-cast -fsyntax-only -verify -pedantic-errors -x objective-c++…
12 T(a)->m = 7; in f()
13 int(a)++; // expected-error {{assignment to cast is illegal}} in f()
14 __extension__ int(a)++; // expected-error {{assignment to cast is illegal}} in f()
15 __typeof(int)(a,5)<<a; // expected-error {{excess elements in scalar initializer}} in f()
18 for (int(a)+1;;) {} // expected-warning {{expression result unused}} in f()
21 typeof(int()+1) a2; // expected-error {{extension used}} in f()
22 (int(1)); // expected-warning {{expression result unused}} in f()
24 // type-id in f()
25 (int())1; // expected-error {{C-style cast from 'int' to 'int ()' is not allowed}} in f()
28 …int fd(T(a)); // expected-warning {{disambiguated as a function declaration}} expected-note{{add a… in f()
29 T(*d)(int(p)); // expected-note {{previous}} in f()
32 …T d3(); // expected-warning {{empty parentheses interpreted as a function declaration}} expected-n… in f()
36 …__typeof(*T()) f4(); // expected-warning {{empty parentheses interpreted as a function declaration… in f()
38 …__typeof(*V()) f5(); // expected-error {{ISO C++ does not allow indirection on operand of type 'V'… in f()
40 …multi2(); // expected-warning {{empty parentheses interpreted as a function declaration}} expected in f()
41 T(d)[5]; // expected-error {{redefinition of 'd'}} in f()
42 typeof(int[])(f) = { 1, 2 }; // expected-error {{extension used}} in f()
60 …RAII raii(); // expected-warning {{function declaration}} expected-note {{remove parentheses to de… in emptyParens()
61 int a, b, c, d, e, // expected-note {{change this ',' to a ';' to call 'func'}} in emptyParens()
62 …func(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an i… in emptyParens()
64 S s(); // expected-warning {{function declaration}} in emptyParens()
66 // expected-note@-2 {{replace parentheses with an initializer to declare a variable}} in emptyParens()
70 int f = 0, // g = 0; expected-note {{change this ',' to a ';' to call 'func2'}} in nonEmptyParens()
71 …func2(short(f)); // expected-warning {{function declaration}} expected-note {{add a pair of parent… in nonEmptyParens()
76 void fn(int(C)) { } // void fn(int(*fp)(C c)) { } expected-note{{candidate function}} in fn()
81 fn(1); // expected-error {{no matching function}} in foo()
86 void foo(); // expected-note 3 {{class 'foo' is hidden by a non-type declaration of 'foo' here}}
90 … const foo* f1 = 0; // expected-error {{must use 'class' tag to refer to type 'foo' in this scope}} in bar()
91 foo* f2 = 0; // expected-error {{must use 'class' tag to refer to type 'foo' in this scope}} in bar()
92 foo f3; // expected-error {{must use 'class' tag to refer to type 'foo' in this scope}} in bar()
96 int baz; // expected-note 2 {{class 'baz' is hidden by a non-type declaration of 'baz' here}}
99 const baz* b1 = 0; // expected-error {{must use 'class' tag to refer to type 'baz' in this scope}} in fizbin()
100 baz* b2; // expected-error {{use of undeclared identifier 'b2'}} in fizbin()
101 baz b3; // expected-error {{must use 'class' tag to refer to type 'baz' in this scope}} in fizbin()