projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR sanitizer/60535 (Link failure with -flto and -fsanitize=undefined)
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr59250.C
1
// PR sanitizer/59250
2
// { dg-do compile }
3
// { dg-options "-fsanitize=undefined" }
4
5
struct E {
6
int i;
7
};
8
9
struct S {
10
const char *s;
11
S (const char *);
12
static E *e;
13
};
14
15
S::S (const char *) : s (0)
16
{
17
e = new E ();
18
}