Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / dependent-types.cpp
blob13ed72f7231e2226efbbade5b01ac345e243674c
1 // RUN: %clang_cc1 -fsyntax-only -pedantic -verify -std=c++11 %s
3 template<typename T> using U = int &;
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}}