* gcc.dg/float-range-3.c: Use "dg-do compile" dejagnu directive
[official-gcc/alias-decl.git] / gcc / testsuite / g++.dg / template / dtor7.C
blob186b561e9c3d8017be8d63e44406b12dc9d95430
1 // PR c++/40373
2 // { dg-do compile }
4 struct A;
5 namespace
7   struct A;
10 struct B {};
12 template <typename T> void
13 foo (T t)
15   t.~A ();      // { dg-error "does not match destructor name" }
18 void
19 bar ()
21   foo (B ());   // { dg-bogus "instantiated from here" "" { xfail *-*-* } }