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
[RFA] Fix csky and c6x build failures
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr30313.c
blob
aefeb7866f91bd6d367531673dbf1582bb2326b4
1
/* { dg-do compile } */
2
3
static
inline
void
bar
(){}
4
5
struct
S
6
{
7
#if __INT_MAX__ == 32767
8
signed int
i
:
16
;
9
#elif __INT_MAX__ == 2147483647
10
signed int
i
:
32
;
11
#elif __INT_MAX__ == 9223372036854775807
12
signed int
i
:
64
;
13
#else
14
#error Please add support for your target here
15
#endif
16
};
17
18
int
main
()
19
{
20
struct
S x
= {
32
};
21
sizeof
(
x
.
i
+
0
);
22
return
0
;
23
}