Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / debug / pr89006.C
blob13c7d217248dca461db4f3bf34024af154926b17
1 // PR debug/89006
2 // { dg-do compile }
3 // { dg-options "-O2 -g -w" }
4 // { dg-additional-options "-fPIC" { target fpic } }
5 // { dg-bogus "non-delegitimized UNSPEC UNSPEC_SET_GOT" "" { target { i?86-*-* x86_64-*-* } } 0 }
7 struct A { A (bool); };
9 static void
10 foo (const char *x)
12   new A (x);
15 void
16 bar ()
18   foo ("foo");
19   foo ("bar");