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
c++: Implement for namespace statics CWG 2867 - Order of initialization for structure...
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr99122-3.c
blob
3e72a303277448d44209ca820c8f6110ca396541
1
/* { dg-do compile } */
2
/* { dg-options "-std=gnu17 -O2 -g -w" } */
3
4
static int
foo
();
5
6
int
7
bar
(
int
n
)
8
{
9
return
foo
(
n
,
2.0
);
10
}
11
12
static
inline
int
13
foo
(
int
n
,
struct
T
{
char
a
[
n
]; }
b
)
14
{
15
int
r
=
0
,
i
;
16
for
(
i
=
0
;
i
<
n
;
i
++)
17
r
+=
b
.
a
[
i
];
18
return
r
;
19
}