From 92657eb0f617edeebbea1b43f3ca4a5c48702ba2 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Sat, 5 Nov 2016 13:06:08 +0000 Subject: [PATCH] re PR ipa/78188 (AIX Bootstrap broken by tree-vrp.c change) 2016-11-05 Richard Biener PR bootstrap/78188 * g++.dg/ipa/pr78188.C: New test. From-SVN: r241871 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/ipa/pr78188.C | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 gcc/testsuite/g++.dg/ipa/pr78188.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7d3537d..2283fd7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-11-05 Richard Biener + + PR bootstrap/78188 + * g++.dg/ipa/pr78188.C: New test. + 2016-11-05 Janus Weil Dominique d'Humieres diff --git a/gcc/testsuite/g++.dg/ipa/pr78188.C b/gcc/testsuite/g++.dg/ipa/pr78188.C new file mode 100644 index 0000000..f6ee654 --- /dev/null +++ b/gcc/testsuite/g++.dg/ipa/pr78188.C @@ -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; + -- 2.7.4