summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr31847.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr31847.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr31847.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr31847.c b/gcc/testsuite/gcc.dg/pr31847.c
new file mode 100644
index 000000000..4b945a994
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr31847.c
@@ -0,0 +1,15 @@
+/* PR 31847 */
+
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-pre-all" } */
+
+extern int bar(int);
+
+int foo()
+{
+ int a = 0;
+ return bar(a);
+}
+
+/* { dg-final { scan-tree-dump-not "Created value for " "pre"} } */
+/* { dg-final { cleanup-tree-dump "pre" } } */