hanchenye-llvm-project/clang/test/Sema/indirect-goto.c

9 lines
225 B
C

// RUN: clang-cc -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}}
}