asm1.C: Don't detect pic via looking for the -fpic/-fPIC flags.
[gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / asm1.C
index 8de6b767932c06a7a6131561cde51941eeb2dc2f..8e54a8ed54a0806b13f4e1eb0e4a422a9e837b7d 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-do assemble { target i?86-*-linux* x86_64-*-linux* } }
-// We'd use ebx with -fpic/-fPIC, so skip.
-// { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } }
+// We'd use ebx with 32-bit pic code, so skip.
+// { dg-skip-if "" { ilp32 && { ! nonpic } } { "*" } { "" } }
 // Origin: "Weidmann, Nicholas" <nicholas.weidmann@swx.ch>
 
 template<int i> int foo(int v)