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
2018-01-24 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr54655.C
blob
5fd5aee9b4d804b43301be5233540ca852746a7e
1
// { dg-do compile }
2
/* { dg-options "-O1" } */
3
4
extern "C" class A
5
{
6
};
7
8
template <typename T> class B:A
9
{
10
public:
11
B (int *, T);
12
~B ()
13
{
14
}
15
};
16
17
bool a;
18
19
inline void
20
fn1 ()
21
{
22
switch (0)
23
case 0:
24
{
25
B <int*> b (0, 0);
26
if (a)
27
break;
28
}
29
}
30
31
void
32
fn2 ()
33
{
34
fn1 ();
35
}