summaryrefslogtreecommitdiff
path: root/recipes/gcc/gcc-4.3.3/fedora/gcc43-pr32139.patch
blob: f35696703db74094d429524e2a3986b992a42a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2007-06-01  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/32139
	* gcc.c-torture/compile/20070531-1.c: New test.

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