]> git.proxmox.com Git - rustc.git/blame - src/llvm/tools/clang/test/SemaCXX/c99.cpp
Imported Upstream version 0.6
[rustc.git] / src / llvm / tools / clang / test / SemaCXX / c99.cpp
CommitLineData
223e47cc
LB
1// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
2void f1(int i[static 5]) { // expected-error{{C99}}
3}
4
5struct Point { int x; int y; };
6
7Point p1 = { .x = 17, // expected-warning{{designated initializers are a C99 feature}}
8 y: 25 }; // expected-warning{{designated initializers are a C99 feature}} \
9 // expected-warning{{use of GNU old-style field designator extension}}