forked from illumos/gcc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* gcc.dg/pr27898.c: New test. PR tree-optimization/32139 * gcc.c-torture/compile/pr32139.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145052 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
uros
committed
Mar 25, 2009
1 parent
850fc3f
commit 0648196
Showing
4 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* PR c/27898 */ | ||
/* { dg-do compile } */ | ||
/* { dg-options "--combine" } */ | ||
/* { dg-additional-sources "pr27898.c" } */ | ||
|
||
union u { struct { int i; }; }; | ||
|
||
extern int foo (union u *); |