Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / temp / temp.names / p3-0x.cpp
blob85dc75e301999cd8ed445cfa3ecbcaa6e1c3f9fc
1 // RUN: %clang_cc1 -std=c++11 %s -verify
3 template<int i> class X { /* ... */ };
4 X< 1>2 > x1; // expected-error{{expected unqualified-id}}
5 X<(1>2)> x2; // OK
6 template<class T> class Y { /* ... */ };
7 Y<X<1>> x3; // OK, same as Y<X<1> > x3;
8 Y<X<6>>1>> x4; // expected-error{{expected unqualified-id}}
9 Y<X<(6>>1)>> x5;
11 int a, b;
12 Y<decltype(a < b)> x6;