summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/cond2.C
blob: cf8df8cd9a7e8a1099dc7d6d64e294a6cf7d2837 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/11962
// { dg-options "" }

template<int X> class c;

template<int X, int Y> int test(c<X ? : Y>&); // { dg-error "omitted" }

void test(c<2>*c2) {
	test<0, 2>(*c2); // { dg-message "instantiated" }	
}