diff options
author | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-07-12 15:41:49 +0000 |
---|---|---|
committer | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-07-12 15:41:49 +0000 |
commit | 0dc99c85ab5d64d9df3244ba25f0d52c41654d5a (patch) | |
tree | 4d63038be796e8fcc6cbc95e125ec2ead6069df9 /gcc/testsuite/c-c++-common | |
parent | 8458c9e9352e2a6695f24cee1948237d77a4df75 (diff) | |
download | gcc-0dc99c85ab5d64d9df3244ba25f0d52c41654d5a.tar.gz |
PR middle-end/55771
* convert.c (convert_to_real): Reject non-float inner types.
testsuite/
* c-c++-common/pr55771.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200926 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/c-c++-common')
-rw-r--r-- | gcc/testsuite/c-c++-common/pr55771.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/pr55771.c b/gcc/testsuite/c-c++-common/pr55771.c new file mode 100644 index 00000000000..16f02442c11 --- /dev/null +++ b/gcc/testsuite/c-c++-common/pr55771.c @@ -0,0 +1,12 @@ +/* { dg-do run } */ + +float global; +int main() +{ + unsigned long z = 1; + float x = -z; + global = x; + if (global < 0) + __builtin_abort (); + return 0; +} |