summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/dtor14.C
blob: 6ba7a5b6c325bf45af460ff763c7fd03beb947c1 (plain)
1
2
3
4
5
6
7
8
// PR c++/39054

struct A {};

template<typename> void foo()
{ 
  A().~int();			// { dg-error "expected" }
}