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
[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
thunk2.C
blob
52fcd74bc11ce36256614b4b4302aa8aa6fab868
1
// PR c++/20206
2
// { dg-do run }
3
// { dg-options "-O0" }
4
5
void
6
bar (int x)
7
{
8
asm ("" : : "g" (x));
9
}
10
11
struct S { S () {}; virtual ~S () {}; };
12
struct T { virtual void foo (int) = 0; };
13
struct U : public S, public T
14
{
15
bool a;
16
U () {}
17
virtual ~U () {}
18
virtual void foo (int x)
19
{
20
switch (x)
21
{
22
case 12:
23
break;
24
case 9:
25
bar (7);
26
break;
27
case 10:
28
bar (12);
29
break;
30
case 4:
31
bar (18);
32
break;
33
case 2:
34
bar (26);
35
break;
36
}
37
}
38
};
39
U u;
40
41
int
42
main ()
43
{
44
}