summaryrefslogtreecommitdiffstats
path: root/test/Sema/indirect-goto.c
blob: 134ccd8a707600a7d2da32b8e081b591ff23fe79 (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -fsyntax-only -verify %s

struct c {int x;};
int a(struct c x, long long y) {
  goto *x; // expected-error{{incompatible type}}
  goto *y; // expected-warning{{incompatible integer to pointer conversion}}
}