OSDN Git Service

PR c++/9335
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / cond2.C
1 // PR c++/11962
2 // { dg-options "" }
3
4 template<int X> class c;
5
6 template<int X, int Y> int test(c<X ? : Y>&); // { dg-error "omitted" }
7
8 void test(c<2>*c2) {
9         test<0, 2>(*c2); // { dg-message "instantiated" }       
10 }