summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/chkp-label-address.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/chkp-label-address.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/chkp-label-address.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/testsuite/gcc.target/i386/chkp-label-address.c b/gcc/testsuite/gcc.target/i386/chkp-label-address.c
deleted file mode 100644
index 23a2f7cd052..00000000000
--- a/gcc/testsuite/gcc.target/i386/chkp-label-address.c
+++ /dev/null
@@ -1,23 +0,0 @@
-/* { dg-do compile { target { ! x32 } } } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx -O2 -Wchkp" } */
-
-#include <stdio.h>
-
-static int f1 () /* { dg-warning "function cannot be instrumented" } */
-{
- static int array = &&label_B - &&label_A;
-
- label_A:
-
- printf ("%d\n", array);
-
- label_B:
-
- return 0;
-}
-
-int f2 (int i)
-{
- printf ("%d\n", i);
- return f1 ();
-}