libstdc++: add missing __
[official-gcc.git] / gcc / testsuite / g++.dg / ubsan / pr59250.C
blobe438d24fda98b1159eebc54a748d538a56eac63c
1 // PR sanitizer/59250
2 // { dg-do compile }
3 // { dg-options "-fsanitize=undefined" }
5 struct E {
6  int i;
7 };
9 struct S {
10   const char *s;
11   S (const char *);
12   static E *e;
15 S::S (const char *) : s (0)
17   e = new E ();