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