repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
m68k: replace reload_in_progress by reload_in_progress || lra_in_progress
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-dtor1.C
blob
9d90a0f20224ac8fec1e0bb53e152ef63d724ea6
1
// DR 1586
2
// { dg-do run { target c++14 } }
3
4
template <class T>
5
void f (T* p)
6
{
7
p->~auto();
8
}
9
10
int d;
11
struct A { ~A() { ++d; } };
12
13
int main()
14
{
15
f(new int(42));
16
f(new A);
17
if (d != 1)
18
throw;
19
20
(new int)->~auto();
21
}