llvm-project/clang/test/SemaCXX/c99.cpp

9 lines
178 B
C++
Raw Normal View History

// RUN: clang-cc -fsyntax-only -verify %s
void f0(int i) {
char array[i]; // expected-error{{variable length arrays}}
}
void f1(int i[static 5]) { // expected-error{{C99}}
}