Lines Matching +full:x +full:- +full:versions

1 // RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic -std=c99
5 void f0(); /* expected-warning {{a function declaration without a prototype is deprecated in all ve…
9 int f4(*XX)(void); /* expected-error {{cannot return}} expected-error {{type specifier missing, def…
10 int f5(int [static]); /* expected-error {{'static' may not be used without an array size}} */
12 char ((((*X)))); variable
30 void test3(x, /* expected-warning {{a function definition without a prototype is depreca… in test3() argument
31 atype /* expected-error {{unexpected type name 'atype': expected identifier}} */ in test3()
32 ) int x, atype; {} in test3()
34 void test4(x, x) int x; {} // expected-error {{redefinition of parameter 'x'}} \ in test4() argument
35 …// expected-warning {{a function definition without a prototype is deprecated in all versions of C…
39 int (test5), ; // expected-error {{expected identifier or '('}}
43 // PR3963 - test error recovery for mistyped "typenames".
45 foo_t *d; // expected-error {{unknown type name 'foo_t'}}
46 foo_t a; // expected-error {{unknown type name 'foo_t'}}
47 int test6() { /* expected-warning {{a function declaration without a prototype is deprecated in all… in test6()
54 xyz b; // expected-error {{must use 'struct' tag to refer to type 'xyz'}}
55 myenum c; // expected-error {{must use 'enum' tag to refer to type 'myenum'}}
60 …return &b.y; // expected-warning {{incompatible pointer types returning 'int *' from a function … in test7()
67 static f; // expected-error {{type specifier missing, defaults to 'int'; ISO C99 and later do …
68 static g = 4; // expected-error {{type specifier missing, defaults to 'int'; ISO C99 and later do …
69 static h // expected-error {{type specifier missing, defaults to 'int'; ISO C99 and later do…
74 int x // expected-error {{expected ';' at end of declaration list}}
76 int z // expected-warning {{expected ';' at end of declaration list}}
86 struct X<foo::int> { }; // expected-error{{expected identifier or '('}}
89 // PR7617 - error recovery on missing ;.
91 void test14(void) // expected-error {{expected ';' after top level declarator}}
96 long struct X { int x; } test15(void); // expected-error {{'long struct' is invalid}}
98 void test16(i) int i j; { } // expected-error {{expected ';' at end of declaration}} \
99 …// expected-warning {{a function definition without a prototype is deprecated in all versions of C…
100 void test17(i, j) int i, j k; { } // expected-error {{expected ';' at end of declaration}} \
101 …// expected-warning {{a function definition without a prototype is deprecated in all versions of C…
102 void knrNoSemi(i) int i { } // expected-error {{expected ';' at end of declaration}} \
103 …// expected-warning {{a function definition without a prototype is deprecated in all versions of C…
107 int x = 4+(5-12)); // expected-error {{extraneous ')' before ';'}}
110 enum E1 { e1 }: // expected-error {{expected ';'}}
111 struct EnumBitfield { // expected-warning {{struct without named members is a GNU extension}}
113 struct S { int n; }: // expected-error {{expected ';'}}
114 // expected-warning@-1 {{declaration does not declare anything}}
124 , // expected-error{{expected identifier}}
130 1D, // expected-error{{expected identifier}}
136 A4 12, // expected-error{{expected '= constant-expression' or end of enumerator definition}}
142 A5=12 4, // expected-error{{expected '}' or ','}}
148 A6; // expected-error{{expected '= constant-expression' or end of enumerator definition}}