indirect-goto.c revision 33083823342649b1fccec856c1f239c09fc0d7e1
1// RUN: clang-cc -fsyntax-only -verify %s
2
3struct c {int x;};
4int a(struct c x, long long y) {
5  goto *x; // expected-error{{incompatible type}}
6  goto *y; // expected-warning{{incompatible integer to pointer conversion}}
7}
8
9