Merge from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / ubsan / pr59250.C
blob4851306882663c6ad6a6a196dc3c237c03af7d27
1 // PR sanitizer/59250
2 // { dg-do compile }
3 // { dg-options "-fsanitize=undefined" }
4 // { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
6 struct E {
7  int i;
8 };
10 struct S {
11   const char *s;
12   S (const char *);
13   static E *e;
16 S::S (const char *) : s (0)
18   e = new E ();