summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/amd64-abi-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/amd64-abi-2.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/amd64-abi-2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/amd64-abi-2.c b/gcc/testsuite/gcc.target/i386/amd64-abi-2.c
new file mode 100644
index 000000000..fefc88a4e
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/amd64-abi-2.c
@@ -0,0 +1,7 @@
+/* PR target/26223 */
+/* { dg-do compile } */
+/* { dg-require-effective-target lp64 } */
+/* { dg-options "-mno-80387" } */
+long double foo(long double x) { return x; } /* { dg-error "x87 disabled" } */
+long double bar(long double x) { return x; }
+