From d0b175bffc2f2cb91d1fb529b7c36d3e984d9594 Mon Sep 17 00:00:00 2001 From: bstarynk Date: Wed, 14 Dec 2011 08:52:21 +0000 Subject: 2011-12-14 Basile Starynkevitch MELT branch merged with trunk rev 182322 using svnmerge git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@182325 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/gcc.c-torture/compile/pr51495.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr51495.c (limited to 'gcc/testsuite/gcc.c-torture/compile') diff --git a/gcc/testsuite/gcc.c-torture/compile/pr51495.c b/gcc/testsuite/gcc.c-torture/compile/pr51495.c new file mode 100644 index 00000000000..34de37b5309 --- /dev/null +++ b/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; +} -- cgit v1.2.1