aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/vla.c
blob: c1e0e20e63af43f0f912f8fa2660572950168fdf (plain)
1
2
3
4
5
6
7
// RUN: clang %s -verify -fsyntax-only

int test1() {
  typedef int x[test1()];  // vla
  static int y = sizeof(x);  // expected-error {{not constant}}
}