diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr47141.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr47141.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr47141.c b/gcc/testsuite/gcc.c-torture/compile/pr47141.c new file mode 100644 index 000000000..875e0fdd1 --- /dev/null +++ b/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); +} |