Debian Codegraph @

clang/test/CXX/temp/temp.names/p3-0x.cpp

raw
1 // RUN: %clang_cc1 -std=c++11 %s -verify
2
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;
10
11 int a, b;
12 Y<decltype(a < b)> x6;