diff options
author | Oleg Endo <olegendo@gcc.gnu.org> | 2013-03-11 01:04:13 +0000 |
---|---|---|
committer | Oleg Endo <olegendo@gcc.gnu.org> | 2013-03-11 01:04:13 +0000 |
commit | 63d5e4a037676d905529d9a82de54fa5e18ac0e7 (patch) | |
tree | 1f7dca55d31bb21e6eb4850f4088e531f0673fb5 | |
parent | 5bd68253c376afbeb8eda22d99c8bd0e91b78a45 (diff) | |
download | gcc-63d5e4a037676d905529d9a82de54fa5e18ac0e7.zip gcc-63d5e4a037676d905529d9a82de54fa5e18ac0e7.tar.gz gcc-63d5e4a037676d905529d9a82de54fa5e18ac0e7.tar.bz2 |
re PR target/40797 (ICE in df_refs_verify, at df-scan.c:4361)
PR target/40797
* gcc.c-torture/compile/pr40797.c: New.
From-SVN: r196590
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr40797.c | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bdc4b9c..e589f97 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-03-11 Oleg Endo <olegendo@gcc.gnu.org> + + PR target/40797 + * gcc.c-torture/compile/pr40797.c: New. + 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> * gcc.dg/pr44194-1.c: Skip compilation on hppa*64*-*-*. diff --git a/gcc/testsuite/gcc.c-torture/compile/pr40797.c b/gcc/testsuite/gcc.c-torture/compile/pr40797.c new file mode 100644 index 0000000..001d1b5 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr40797.c @@ -0,0 +1,16 @@ +typedef struct str { short x, y;} S; + +static short +bar (short ch, short sl, short sr, short tl, short tr) +{ + return 0; +} + +void +foo (short ch, S *pi, short nc, S *po) +{ + short clo, chi, lo, hi; + + po->x = bar (ch, clo, chi, pi[lo].x, pi[hi].x); + po->y = bar (ch, clo, chi, pi[lo].y, pi[hi].y); +} |