summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/error43.C
blob: 876e0181a40c0a2b1746e46b9bd9dd6608940610 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/29363

template<int> void foo()
{
  throw A();			// { dg-message "declar" }
  struct A {} a;
}

template void foo<0>();		// { dg-message "instantiated" }