Douglas Gregor | 2d75bbd | 2011-01-16 16:13:16 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s |
Douglas Gregor | 043cad2 | 2009-09-11 00:18:58 +0000 | [diff] [blame] | 2 | void f1(int i[static 5]) { // expected-error{{C99}} |
| 3 | } |
Douglas Gregor | 2d75bbd | 2011-01-16 16:13:16 +0000 | [diff] [blame] | 4 | |
| 5 | struct Point { int x; int y; }; |
| 6 | |
| 7 | Point 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}} |