Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -pedantic -verify %s |
Douglas Gregor | 898574e | 2008-12-05 23:32:09 +0000 | [diff] [blame] | 2 | |
3 | template<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 | } |