diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-14 12:21:33 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-14 12:21:33 +0000 |
commit | ae1d0cccc1e85120593b6e0e2d104297a6ab44a0 (patch) | |
tree | 75baedbe3aa17902f83a98bd7fde364ba51238d1 /gcc/testsuite/gcc.dg/pr52132.c | |
parent | 5e6ca8f01ffff075d1c82f7629125df9ef110fe8 (diff) | |
download | gcc-ae1d0cccc1e85120593b6e0e2d104297a6ab44a0.tar.gz |
2012-02-14 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 184203 using svnmerge
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@184207 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr52132.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr52132.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr52132.c b/gcc/testsuite/gcc.dg/pr52132.c new file mode 100644 index 00000000000..8374994424a --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr52132.c @@ -0,0 +1,18 @@ +/* PR debug/52132 */ +/* { dg-do compile } */ +/* { dg-options "-std=c99 -O2 -g" } */ + +int l; +void bar (void); + +void +foo (int *x, float y) +{ + float b; + union { float f; int i; } u = { .f = y }; + u.i += 127 << 23; + u.f = ((-1.0f / 3) * u.f + 2) * u.f - 2.0f / 3; + b = 0.5 * (u.f + l); + if (b >= *x) + bar (); +} |