Add a test case for Chris lvalue alignment fixes.
[oota-llvm.git] / test / FrontendC / 2009-01-25-NoSSE.c
1 // RUN: $llvmgcc -m64 -O1 -march=core2 -mno-sse %s -S -o - | not grep xmm
2 // PR3402
3 // This is a test for x86/x86-64, add your target below if it FAILs.
4 // XFAIL: alpha|ia64|arm|powerpc|sparc 
5 // reverted
6 // XFAIL: *
7 typedef unsigned long __kernel_size_t;
8 typedef __kernel_size_t size_t;
9 void *memset(void *s, int c, size_t n);
10
11 typedef unsigned char cc_t;
12 typedef unsigned int speed_t;
13 typedef unsigned int tcflag_t;
14
15 struct ktermios {
16  tcflag_t c_iflag;
17  tcflag_t c_oflag;
18  tcflag_t c_cflag;
19  tcflag_t c_lflag;
20  cc_t c_line;
21  cc_t c_cc[19];
22  speed_t c_ispeed;
23  speed_t c_ospeed;
24 };
25 void bar(struct ktermios*);
26 void foo()
27 {
28     struct ktermios termios;
29     memset(&termios, 0, sizeof(termios));
30     bar(&termios);
31 }
32