diff options
Diffstat (limited to 'clang/test/SemaCXX/c99.cpp')
-rw-r--r-- | clang/test/SemaCXX/c99.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/c99.cpp b/clang/test/SemaCXX/c99.cpp new file mode 100644 index 0000000..13918dc --- /dev/null +++ b/clang/test/SemaCXX/c99.cpp @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s +void f1(int i[static 5]) { // expected-error{{C99}} +} + +struct Point { int x; int y; }; + +Point p1 = { .x = 17, // expected-warning{{designated initializers are a C99 feature}} + y: 25 }; // expected-warning{{designated initializers are a C99 feature}} \ + // expected-warning{{use of GNU old-style field designator extension}} |