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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr101172.c
blob
b9d098bb64445917408a47238b92ed48976b6a3e
1
/* PR middle-end/101172 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
5
union
U
6
{
7
int
a
[
3
];
8
struct
9
{
10
int
a
:
3
;
11
struct
this_struct var
;
/* { dg-error "field 'var' has incomplete type" } */
12
}
b
;
13
};
14
15
const union
U hello
= {.
a
= {
1
,
2
,
3
}};
16
17
void
foo
()
18
{
19
int
x
=
hello
.
b
.
a
;
20
}