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