aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr47141.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr47141.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr47141.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr47141.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr47141.c
new file mode 100644
index 000000000..875e0fdd1
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr47141.c
@@ -0,0 +1,16 @@
+int
+foo (__UINTPTR_TYPE__ x)
+{
+ int a = 6;
+ int *b = &a;
+ if (x)
+ for (a = 0; a; a++)
+ ;
+ return a;
+}
+
+void
+bar (void)
+{
+ foo ((__UINTPTR_TYPE__) foo);
+}