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