aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/dependent-types.cpp
blob: a5d23ffaa48803fb9d88bed673ee92ae0996efc0 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang -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{{variable has incomplete type 'T []'}}
  T x5[Size];
  int x6[Size];
}