Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
a5728872c7702ddd09537c95bc3cbd20e1f2fb09
/
.
/
test
/
Sema
/
indirect-goto.c
blob: 134ccd8a707600a7d2da32b8e081b591ff23fe79 [
file
] [
log
] [
blame
]
// 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}}
}