http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
[official-gcc.git] / gcc / testsuite / g++.dg / opt / life1.C
blobf029767b31312bc7775b724f16eff74aa1497d4f
1 // This testcase did not set up the pic register on IA-32 due
2 // to bug in calculate_global_regs_live EH edge handling.
3 // { dg-do compile { target i?86-*-linux* x86_64-*-linux* } }
4 // { dg-require-effective-target ilp32 }
5 // { dg-require-effective-target fpic }
6 // { dg-options "-O2 -fPIC" }
8 struct A { };
10 void foo (A (*fn)())
12   try {
13     A a = fn ();
14   } catch (...) {
15   }
18 // { dg-final { scan-assembler "GLOBAL_OFFSET_TABLE" } }