repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
typename-vla-3.c
blob
2bd683e1b9717063b23623c6d469ee2efa75e8e7
1
/* { dg-do run }
2
* { dg-options "-std=c99" }
3
* */
4
5
static char
tmp
[
2
];
6
7
static int
f
(
int
n
,
char
(*
x
)[
sizeof
*(++
n
, (
struct
{
char
(*
x
)[
n
]; }){ &
tmp
}).
x
])
/* { dg-warning "anonymous struct" } */
8
{
9
return sizeof
*
x
;
10
}
11
12
int
main
(
void
)
13
{
14
if
(
2
!=
f
(
1
, &
tmp
))
15
__builtin_abort
();
16
return
0
;
17
}
18