projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Rather than having special rules like "intrinsics cannot
[oota-llvm.git]
/
test
/
CFrontend
/
2007-09-28-PackedUnionMember.c
1
// RUN: %llvmgcc %s -S -o -
2
#pragma pack(push, 2)
3
struct H {
4
unsigned long f1;
5
unsigned long f2;
6
union {
7
struct opaque1 *f3;
8
struct opaque2 *f4;
9
struct {
10
struct opaque3 *f5;
11
unsigned short f6;
12
} f7;
13
} f8;
14
};
15
#pragma pack(pop)
16
17
struct E {
18
unsigned long f1;
19
unsigned long f2;
20
};
21
22
typedef long (*FuncPtr) ();
23
24
extern long bork(FuncPtr handler, const struct E *list);
25
26
static long hndlr()
27
{
28
struct H cmd = { 4, 'fart' };
29
return 0;
30
}
31
void foo(void *inWindow) {
32
static const struct E events[] = {
33
{ 'cmds', 1 }
34
};
35
bork(hndlr, events);
36
}
37