aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/unsorted/pyr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/unsorted/pyr.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/unsorted/pyr.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/unsorted/pyr.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/unsorted/pyr.c
new file mode 100644
index 000000000..d25b2a99a
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/unsorted/pyr.c
@@ -0,0 +1,11 @@
+foo (char *a)
+{
+ char b;
+ int c;
+ b = *a;
+ c = b;
+ if (c < 0)
+ return 1;
+ a[1] = b;
+
+}