aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/sizeof11.C
blob: 7428e0b238071970ec9fce88de18e719376209ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/29435

template < class T > struct A {};
template < int> void g()
{
  sizeof (A < int>);
}

template < class T > struct B;
template < int> void f()
{
  sizeof (B<int>); // { dg-error "incomplete" }
}