Commit ecd51813 by Marek Polacek Committed by Marek Polacek

pr59250.C: New test.

2013-11-25  Marek Polacek  <polacek@redhat.com>

testsuite/
	* g++.dg/ubsan/pr59250.C: New test.

From-SVN: r205349
parent 7d7b5c7a
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
......
// 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 ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment