blob: 13918dcf5ef65a05c74476dff21e680e4e365e77 [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
Richard Smithd7c56e12011-12-29 21:57:33 +00007Point p1 = { .x = 17, // expected-warning{{designated initializers are a C99 feature}}
8 y: 25 }; // expected-warning{{designated initializers are a C99 feature}} \
Douglas Gregor2d75bbd2011-01-16 16:13:16 +00009 // expected-warning{{use of GNU old-style field designator extension}}