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
PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr45412.C
blob
e374f52b51d57c6ab756bbb1a0d6723d1ae5d598
1
// { dg-do compile }
2
// { dg-options "-O2 -fipa-cp-clone -ftracer" }
3
4
int foo (int *);
5
void bar ();
6
7
struct S
8
{
9
virtual int vm ();
10
~S ();
11
};
12
13
int
14
S::vm ()
15
{
16
int state;
17
switch (foo (&state))
18
{
19
case 0:
20
bar ();
21
case 1:
22
delete this;
23
}
24
return state;
25
}
26