URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [dtor7.C] - Rev 301
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/40373
// { dg-compile }
struct A;
namespace
{
struct A;
}
struct B {};
template <typename T> void
foo (T t)
{
t.~A (); // { dg-error "does not match destructor name" }
}
void
bar ()
{
foo (B ()); // { dg-bogus "instantiated from here" "" { xfail *-*-* } }
}
Go to most recent revision | Compare with Previous | Blame | View Log