Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
d98aab5a7ed06af779fdafa293b0df44ce8606dc
/
.
/
test
/
Sema
/
decl-invalid.c
blob: 281e8a8d5c052667bae033ba29c528717a8e11ca [
file
] [
log
] [
blame
]
// RUN: clang %s -fsyntax-only -verify
typedef
union
<anonymous>
__mbstate_t
;
// expected-error: {{expected identifier or}}
// PR2017
void
x
();
int
a
()
{
int
r
[
x
()];
// expected-error: {{size of array has non-integer type 'void'}}
}