xref: /llvm-project/clang/test/Sema/vla.cpp (revision 84a3aadf0f2483dde0acfc4e79f2a075a5f35bd1)
1 // RUN: %clang_cc1 %s -verify -fsyntax-only -Wno-vla
2 
f1(int n)3 void f1(int n) {
4   typedef int x[n];
5   const x y; // expected-error {{default initialization of an object of const type 'const x' (aka 'const int[n]')}}
6 }
7