blob: d9b53230c99470bb3d7944ea5f9d9e2f02c77fbd [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
template<typename T, int Size> void f() {
T x1;
T* x2;
T& x3; // expected-error{{declaration of reference variable 'x3' requires an initializer}}
T x4[]; // expected-error{{needs an explicit size or an initializer}}
T x5[Size];
int x6[Size];
}