mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-14 06:49:30 +08:00
pr59250.C: New test.
2013-11-25 Marek Polacek <polacek@redhat.com> testsuite/ * g++.dg/ubsan/pr59250.C: New test. From-SVN: r205349
This commit is contained in:
parent
7d7b5c7a4b
commit
ecd51813f1
@ -1,3 +1,8 @@
|
||||
2013-11-25 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
PR sanitizer/59250
|
||||
* g++.dg/ubsan/pr59250.C: New test.
|
||||
|
||||
2013-11-25 Janus Weil <janus@gcc.gnu.org>
|
||||
|
||||
PR fortran/59143
|
||||
|
19
gcc/testsuite/g++.dg/ubsan/pr59250.C
Normal file
19
gcc/testsuite/g++.dg/ubsan/pr59250.C
Normal file
@ -0,0 +1,19 @@
|
||||
// PR sanitizer/59250
|
||||
// { dg-do compile }
|
||||
// { dg-options "-fsanitize=undefined" }
|
||||
// { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
|
||||
|
||||
struct E {
|
||||
int i;
|
||||
};
|
||||
|
||||
struct S {
|
||||
const char *s;
|
||||
S (const char *);
|
||||
static E *e;
|
||||
};
|
||||
|
||||
S::S (const char *) : s (0)
|
||||
{
|
||||
e = new E ();
|
||||
}
|
Loading…
Reference in New Issue
Block a user