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
/
ubsan
/
pr59250.C
blob
4851306882663c6ad6a6a196dc3c237c03af7d27
1
// PR sanitizer/59250
2
// { dg-do compile }
3
// { dg-options "-fsanitize=undefined" }
4
// { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
5
6
struct E {
7
int i;
8
};
9
10
struct S {
11
const char *s;
12
S (const char *);
13
static E *e;
14
};
15
16
S::S (const char *) : s (0)
17
{
18
e = new E ();
19
}