blob: 1e646574830029553d9bbedca7877ec7eb6d099a [file] [log] [blame]
Devang Patel3137f122007-09-28 23:54:26 +00001// RUN: %llvmgcc %s -S -o -
2#pragma pack(push, 2)
3struct 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
17struct E {
18 unsigned long f1;
19 unsigned long f2;
20};
21
22typedef long (*FuncPtr) ();
23
24extern long bork(FuncPtr handler, const struct E *list);
25
26static long hndlr()
27{
28 struct H cmd = { 4, 'fart' };
29 return 0;
30}
31void foo(void *inWindow) {
32 static const struct E events[] = {
33 { 'cmds', 1 }
34 };
35 bork(hndlr, events);
36}
37