summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/pr28114.C
blob: 63ecbf51f4f99321679b63c54d1d43ca6c6aa581 (plain)
1
2
3
4
5
6
7
8
9
10
// Test to make sure we do not ICE on this invalid program.

template<int> void foo(struct {}*); // { dg-message "" }

void bar()
{
  foo<0>(0);			// { dg-error "" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 8 }
}