summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr44050.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture/pr44050.c')
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr44050.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr44050.c b/gcc/testsuite/gcc.dg/torture/pr44050.c
new file mode 100644
index 000000000..931eff6ff
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr44050.c
@@ -0,0 +1,21 @@
+/* { dg-do run } */
+/* { dg-options "-fno-tree-pta" } */
+
+static void __attribute__((noinline))
+foo (int *i, int n)
+{
+ *i = n;
+}
+
+int
+main (void)
+{
+ int i = 0;
+ foo (&i, 1);
+
+ if (i != 1)
+ __builtin_abort ();
+
+ return 0;
+}
+