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
gcc/
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr35440.c
blob
796d7e0a9ae8e8eb753f15ad436ce26e4ec7e8bb
1
/* PR c/35440 */
2
/* { dg-do compile } */
3
/* { dg-options "-std=gnu99" } */
4
5
struct
A
{};
6
struct
B
{
int
i
;
char
j
[
2
]; };
7
8
void
foo
(
void
)
9
{
10
(
struct
A
){}();
/* { dg-error "called object" } */
11
(
struct
B
){ .
i
=
2
, .
j
[
1
] =
1
}();
/* { dg-error "called object" } */
12
}