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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
addrof1.C
blob
fda09923b76a6ea310b209a832cd1c0dcbb17449
1
2
extern "C" void abort ();
3
4
typedef struct st {
5
unsigned char a;
6
unsigned char b;
7
unsigned char c;
8
unsigned char d;
9
} __attribute__((aligned(4))) st;
10
11
void testme(int, int, int);
12
13
static inline void
14
stupid_func(st s)
15
{
16
testme(s.a, s.b, s.c);
17
}
18
19
int main()
20
{
21
st s;
22
23
s.a = s.b = s.c = 216;
24
stupid_func(s);
25
26
return 0;
27
}
28
29
void testme(int a, int b, int c)
30
{
31
if (a != 216 || b != 216 || c != 216)
32
abort();
33
}