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
2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr63543.c
blob
215b62ed911f8c1cf8137b1e26d9f2ec27227241
1
/* PR c/63543 */
2
/* { dg-do compile } */
3
4
struct
S
;
5
union
U
;
6
7
int
8
f1
(
struct
S
*
s
)
9
{
10
return
s
->
a
/* { dg-error "dereferencing pointer to incomplete type .struct S." } */
11
+
s
->
b
12
+
s
->
c
;
13
}
14
15
int
16
f2
(
union
U
*
u
)
17
{
18
return
u
->
a
/* { dg-error "dereferencing pointer to incomplete type .union U." } */
19
+
u
->
a
20
+
u
->
a
;
21
}