aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/pr55771.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/pr55771.c')
-rw-r--r--gcc-4.9/gcc/testsuite/c-c++-common/pr55771.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/pr55771.c b/gcc-4.9/gcc/testsuite/c-c++-common/pr55771.c
new file mode 100644
index 000000000..16f02442c
--- /dev/null
+++ b/gcc-4.9/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;
+}