blob: b2a5c45787c910a8dd1af867986748b779558a1d [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -pedantic -verify %s
Douglas Gregor898574e2008-12-05 23:32:09 +00002
3template<typename T, int Size> void f() {
4 T x1;
5 T* x2;
6 T& x3; // expected-error{{declaration of reference variable 'x3' requires an initializer}}
7 T x4[]; // expected-error{{variable has incomplete type 'T []'}}
8 T x5[Size];
9 int x6[Size];
10}