repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr60569.C
blob
df57c06bed6ae97db23e38743b536e480cd5963d
1
// PR sanitizer/60569
2
// { dg-do link }
3
// { dg-require-effective-target lto }
4
// { dg-options "-fsanitize=undefined -flto" }
5
6
struct A
7
{
8
void foo ();
9
struct
10
{
11
int i;
12
void bar () { i = 0; }
13
} s;
14
};
15
16
void A::foo () { s.bar (); }
17
18
int
19
main ()
20
{
21
}