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 | |
Richard Smith | d7c56e1 | 2011-12-29 21:57:33 +0000 | [diff] [blame] | 7 | Point p1 = { .x = 17, // expected-warning{{designated initializers are a C99 feature}} |
| 8 | y: 25 }; // expected-warning{{designated initializers are a C99 feature}} \ |
Douglas Gregor | 2d75bbd | 2011-01-16 16:13:16 +0000 | [diff] [blame] | 9 | // expected-warning{{use of GNU old-style field designator extension}} |