repo.or.cz
/
official-gcc
/
alias-decl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* gcc.dg/float-range-3.c: Use "dg-do compile" dejagnu directive
[official-gcc/alias-decl.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
dtor7.C
blob
186b561e9c3d8017be8d63e44406b12dc9d95430
1
// PR c++/40373
2
// { dg-do compile }
3
4
struct A;
5
namespace
6
{
7
struct A;
8
}
9
10
struct B {};
11
12
template <typename T> void
13
foo (T t)
14
{
15
t.~A (); // { dg-error "does not match destructor name" }
16
}
17
18
void
19
bar ()
20
{
21
foo (B ()); // { dg-bogus "instantiated from here" "" { xfail *-*-* } }
22
}