bolt/deps/llvm-18.1.8/clang/test/Sema/vla.cpp
2025-02-14 19:21:04 +01:00

6 lines
209 B
C++

// RUN: %clang_cc1 %s -verify -fsyntax-only -Wno-vla
void f1(int n) {
typedef int x[n];
const x y; // expected-error {{default initialization of an object of const type 'const x' (aka 'const int[n]')}}
}