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
Merge from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr59622-5.C
blob
bcb2591a64c042c2aba2dfed945c0e7dea139fe9
1
// PR tree-optimization/59622
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
5
namespace
6
{
7
struct A
8
{
9
A () {}
10
virtual A *bar (int);
11
A *baz (int x) { return bar (x); }
12
};
13
14
__attribute__((noreturn)) A *A::bar (int)
15
{
16
__builtin_exit (0);
17
}
18
}
19
20
A *a;
21
22
void
23
foo ()
24
{
25
a->baz (0);
26
}