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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr94436.c
blob
345b5958a19df812d31ca5b85e3bcc531027e989
1
/* PR middle-end/94436 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wincompatible-pointer-types" } */
4
5
struct
S
{
int
s
; };
6
int
foo
(
struct
S
*);
7
8
int
9
bar
(
void
)
10
{
11
int
s
=
0
;
12
return
foo
((
struct
S
*) ((
char
*) &
s
- (
char
*) &((
struct
S
*)
0
)->
s
));
/* { dg-bogus "from incompatible pointer type" } */
13
}