7 lines · cpp
1// RUN: %clang_cc1 %s -verify -fsyntax-only -Wno-vla2 3void 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 1// RUN: %clang_cc1 %s -verify -fsyntax-only -Wno-vla2 3void 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