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
S(const char *)15 S::S (const char *) : s (0)
16 {
17 e = new E ();
18 }
19