diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51246.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51246.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51246.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51246.c new file mode 100644 index 000000000..c206d8689 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51246.c @@ -0,0 +1,14 @@ +/* PR tree-optimization/51246 */ + +int a, *b; + +void +test (void) +{ + while (1) + { + int c; + a = c; + b = &c; + } +} |