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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr59250.C
blob
e438d24fda98b1159eebc54a748d538a56eac63c
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
}