re PR ipa/78188 (AIX Bootstrap broken by tree-vrp.c change)
2016-11-05 Richard Biener <rguenther@suse.de> PR bootstrap/78188 * g++.dg/ipa/pr78188.C: New test. From-SVN: r241871
This commit is contained in:
parent
28ce22e6cb
commit
92657eb0f6
@ -1,3 +1,8 @@
|
||||
2016-11-05 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR bootstrap/78188
|
||||
* g++.dg/ipa/pr78188.C: New test.
|
||||
|
||||
2016-11-05 Janus Weil <janus@gcc.gnu.org>
|
||||
Dominique d'Humieres <dominiq@lps.ens.fr>
|
||||
|
||||
|
20
gcc/testsuite/g++.dg/ipa/pr78188.C
Normal file
20
gcc/testsuite/g++.dg/ipa/pr78188.C
Normal file
@ -0,0 +1,20 @@
|
||||
// { dg-do compile }
|
||||
// { dg-options "-O2 -fno-exceptions" }
|
||||
|
||||
int a;
|
||||
static void __attribute__((noinline)) foo () { a = 1; }
|
||||
static void __attribute__((noinline)) foo2 () { a = 2; }
|
||||
|
||||
struct X
|
||||
{
|
||||
virtual void bar (int i) { if (!i) { foo (); __builtin_abort (); } }
|
||||
};
|
||||
|
||||
void baz (int i)
|
||||
{
|
||||
if (!i)
|
||||
{ foo2 (); __builtin_abort (); }
|
||||
}
|
||||
|
||||
X xx;
|
||||
|
Loading…
x
Reference in New Issue
Block a user