Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fsyntax-only -pedantic -verify -std=c++11 %s
      2 
      3 template<typename T> using U = int &;
      4 
      5 template<typename T, int Size> void f() {
      6   T x1;
      7   T* x2;
      8   T& x3; // expected-error{{declaration of reference variable 'x3' requires an initializer}}
      9   T x4[]; // expected-error{{needs an explicit size or an initializer}}
     10   T x5[Size];
     11   int x6[Size];
     12   U<T> x7; // expected-error{{declaration of reference variable 'x7' requires an initializer}}
     13 }
     14