diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-14 23:24:14 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-14 23:24:14 +0000 |
commit | b336acd54731e4258e4848b1e3409493a2ae780b (patch) | |
tree | a201846a39be53f6e3ecd20c4823e63363353116 /gcc/testsuite/gcc.dg/comp-goto-1.c | |
parent | 4aab03406da1df304eabbdc6091720a789297ef8 (diff) | |
download | gcc-b336acd54731e4258e4848b1e3409493a2ae780b.tar.gz |
* gcc.dg/c99-flex-array-5.c, gcc.dg/c99-fordecl-3.c,
gcc.dg/comp-goto-1.c, gcc.dg/comp-goto-2.c, gcc.dg/comp-goto-3.c,
gcc.dg/format/strfmon-2.c, gcc.dg/pointer-arith-1.c,
gcc.dg/pointer-arith-2.c, gcc.dg/pointer-arith-3.c,
gcc.dg/pointer-arith-4.c, gcc.dg/switch-5.c, gcc.dg/switch-6.c,
gcc.dg/switch-7.c: New tests.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90637 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/comp-goto-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/comp-goto-1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/comp-goto-1.c b/gcc/testsuite/gcc.dg/comp-goto-1.c new file mode 100644 index 00000000000..66afac87b9f --- /dev/null +++ b/gcc/testsuite/gcc.dg/comp-goto-1.c @@ -0,0 +1,13 @@ +/* Test diagnostics for addresses of labels and computed gotos. Test + with no special options. */ +/* Origin: Joseph Myers <joseph@codesourcery.com> */ +/* { dg-do compile } */ +/* { dg-options "" } */ + +void +f (void) +{ + void *p = &&a; + goto *p; + a: ; +} |