aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr52170.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/pr52170.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/torture/pr52170.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr52170.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr52170.c
new file mode 100644
index 000000000..3d0a03889
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr52170.c
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+
+typedef unsigned char uint8_t ;
+typedef unsigned long uint32_t;
+void f0a(uint32_t * result, uint32_t * arg1)
+{
+ int idx;
+ for (idx=0;idx<96;idx += 1)
+ {
+ uint8_t temp_5;
+ uint8_t temp_6;
+
+ temp_5 = ~(*arg1);
+ temp_6 = (*arg1) + 1 - temp_5;
+ result[idx] = temp_6;
+ }
+}