1c10906
2007-06-01  Jakub Jelinek  <jakub@redhat.com>
1c10906
1c10906
	PR tree-optimization/32139
1c10906
	* gcc.c-torture/compile/20070531-1.c: New test.
1c10906
1c10906
--- gcc/testsuite/gcc.c-torture/compile/20070531-1.c.jj	2007-05-31 13:47:22.000000000 +0200
1c10906
+++ gcc/testsuite/gcc.c-torture/compile/20070531-1.c	2007-06-01 10:57:15.000000000 +0200
1c10906
@@ -0,0 +1,11 @@
1c10906
+/* PR tree-optimization/32139 */
1c10906
+int foo (void);
1c10906
+int bar (void) __attribute__ ((const));
1c10906
+
1c10906
+int
1c10906
+test (int x)
1c10906
+{
1c10906
+  int a = (x == 10000 ? foo : bar) ();
1c10906
+  int b = (x == 10000 ? foo : bar) ();
1c10906
+  return a + b;
1c10906
+}