aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/vla.cpp
blob: d4f74d8c14edf17d9ab7542cd27c82335d24a518 (plain)
1
2
3
4
5
6
// 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]')}}
}