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++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
pr97164.c
blob
8ffb9289449a2eb18961c998261ced9aba8375d0
1
/* PR tree-optimization/97164 */
2
/* { dg-do compile } */
3
4
typedef
struct
{
int
*
a
;
char
b
[
64
]; }
A
__attribute__
((
aligned
(
64
)));
5
struct
B
{
A d
[
4
]; }
b
;
/* { dg-error "size of array element is not a multiple of its alignment" } */
6
void
foo
(
void
);
7
8
int
*
9
bar
(
void
)
10
{
11
struct
B
*
h
= &
b
;
12
if
(
h
->
d
[
1
].
a
)
13
foo
();
14
return
h
->
d
[
1
].
a
;
15
}