2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / life1.C
blobac7a9f26d002523f7604f0f49f9e97c4cc7a37af
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* } }
4 // { dg-options "-O2 -fPIC" }
6 struct A { };
8 void foo (A (*fn)())
10   try {
11     A a = fn ();
12   } catch (...) {
13   }
16 // { dg-final { scan-assembler "GLOBAL_OFFSET_TABLE" } }