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
/
Wmissing-field-initializers-2.c
blob
cb42968a4905278dcb1c198d8a0fcc6096caf3f3
1
/* PR c/84685 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wmissing-field-initializers" } */
4
5
struct
T
{
6
int
a
;
7
int
*
b
;
8
int
c
;
9
};
10
11
struct
T t
= { .
b
= (
int
[]){
1
} };
/* { dg-bogus "missing initializer" } */