blob: cda069cf47fcc7f53945cb7fa560deef81741254 [file] [log] [blame]
Douglas Gregor2d75bbd2011-01-16 16:13:16 +00001// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
Douglas Gregor043cad22009-09-11 00:18:58 +00002void f1(int i[static 5]) { // expected-error{{C99}}
3}
Douglas Gregor2d75bbd2011-01-16 16:13:16 +00004
5struct Point { int x; int y; };
6
7Point p1 = { .x = 17, // expected-warning{{designated initializers are a C99 feature, accepted in C++ as an extension}}
8 y: 25 }; // expected-warning{{designated initializers are a C99 feature, accepted in C++ as an extension}} \
9 // expected-warning{{use of GNU old-style field designator extension}}