aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/gcc/testsuite/gcc.target/i386/pr42891.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.7/gcc/testsuite/gcc.target/i386/pr42891.c')
-rw-r--r--gcc-4.7/gcc/testsuite/gcc.target/i386/pr42891.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.7/gcc/testsuite/gcc.target/i386/pr42891.c b/gcc-4.7/gcc/testsuite/gcc.target/i386/pr42891.c
new file mode 100644
index 000000000..e3c7b9cf8
--- /dev/null
+++ b/gcc-4.7/gcc/testsuite/gcc.target/i386/pr42891.c
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+union B { int i; float f; };
+
+extern void bar (void);
+
+void
+foo (union B x, union B y)
+{
+ if (!(y.f > x.i))
+ bar ();
+}