diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51495.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51495.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51495.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51495.c new file mode 100644 index 000000000..34de37b53 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51495.c @@ -0,0 +1,14 @@ +/* PR rtl-optimization/51495 */ + +void bar (void); + +int +foo (int i) +{ + static const void *const table[] = { &&begin, &&end }; + goto *(table[i]); +begin: + bar (); +end: + return 0; +} |