2011-01-17 00:13:16 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
|
2009-09-11 08:18:58 +08:00
|
|
|
void f1(int i[static 5]) { // expected-error{{C99}}
|
|
|
|
}
|
2011-01-17 00:13:16 +08:00
|
|
|
|
2013-11-02 18:38:05 +08:00
|
|
|
struct Point { int x; int y; int z[]; }; // expected-warning{{flexible array members are a C99 feature}}
|
2011-01-17 00:13:16 +08:00
|
|
|
|
2011-12-30 05:57:33 +08:00
|
|
|
Point p1 = { .x = 17, // expected-warning{{designated initializers are a C99 feature}}
|
|
|
|
y: 25 }; // expected-warning{{designated initializers are a C99 feature}} \
|
2011-01-17 00:13:16 +08:00
|
|
|
// expected-warning{{use of GNU old-style field designator extension}}
|