Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
pr59250.C
blob: e438d24fda98b1159eebc54a748d538a56eac63c [
file
] [
log
] [
blame
]
// PR sanitizer/59250
// { dg-do compile }
// { dg-options "-fsanitize=undefined" }
struct
E
{
int
i
;
};
struct
S
{
const
char
*
s
;
S
(
const
char
*);
static
E
*
e
;
};
S
::
S
(
const
char
*)
:
s
(
0
)
{
e
=
new
E
();
}