summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/force-indirect-call-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/force-indirect-call-2.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/force-indirect-call-2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/force-indirect-call-2.c b/gcc/testsuite/gcc.target/i386/force-indirect-call-2.c
new file mode 100644
index 00000000000..2f702363041
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/force-indirect-call-2.c
@@ -0,0 +1,6 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -mforce-indirect-call -fPIC" } */
+/* { dg-require-effective-target fpic } */
+/* { dg-final { scan-assembler-times "(?:call|jmp)\[ \\t\]+\\*%" 3 } } */
+
+#include "force-indirect-call-1.c"