Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
toolchain
/
llvm-project
/
1242fff6eced2fff31bf60a4357d0165c0da32b7
/
.
/
clang
/
test
/
Sema
/
assign.c
blob: b94d5835ee8bdf4fa93ea38aedd99452c2e33c14 [
file
] [
log
] [
blame
]
// RUN: clang -fsyntax-only -verify %s
void
*
test1
(
void
)
{
return
0
;
}
void
test2
(
const
struct
{
int
a
;}
*
x
)
{
x
->
a
=
10
;
// expected-error {{read-only variable is not assignable}}
}