aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr49220.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr49220.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr49220.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr49220.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr49220.c
new file mode 100644
index 000000000..b8285ce4a
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr49220.c
@@ -0,0 +1,25 @@
+int array[2];
+
+static int
+func1 (int b)
+{
+ return b;
+}
+
+static int
+func2 (int a, int b)
+{
+ return b == 0 ? a : b;
+}
+
+int
+func3 (int a)
+{
+}
+
+int *
+func4 (int *arg)
+{
+ *arg = func1 ((func2 (func3 (array[0]), *arg)) | array[0]);
+ return &array[1];
+}