aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/iftrap-3.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/iftrap-3.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/iftrap-3.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/iftrap-3.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/iftrap-3.c
new file mode 100644
index 000000000..52278e145
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/iftrap-3.c
@@ -0,0 +1,4 @@
+/* Check that the conditional_trap pattern handles floating-point
+ comparisons correctly. */
+void f1 (float x, float y) { if (x == y) __builtin_trap (); }
+void f2 (double x, double y) { if (x == y) __builtin_trap (); }