aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/comp-goto-5.c
blob: d487729a5d4bd7020d29f53a3a1a6e2788dd87e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c/32122 */
/* { dg-do compile } */
/* { dg-options "" } */

enum {a=1};
void foo()
{
  goto *
        a; /* { dg-error "computed goto must be pointer type" } */
}