Add include needed for MSVC.
[clang/acc.git] / test / CodeGen / builtin-memfns.c
blob9ae380c5455be416d881aaa334b4199c21222c7d
1 // RUN: clang-cc -triple i386-pc-linux-gnu -emit-llvm -o %t %s &&
2 // RUN: grep '@llvm.memset.i32' %t &&
3 // RUN: grep '@llvm.memcpy.i32' %t &&
4 // RUN: grep '@llvm.memmove.i32' %t &&
5 // RUN: grep __builtin %t | count 0
7 int main(int argc, char **argv) {
8 unsigned char a = 0x11223344;
9 unsigned char b = 0x11223344;
10 __builtin_bzero(&a, sizeof(a));
11 __builtin_memset(&a, 0, sizeof(a));
12 __builtin_memcpy(&a, &b, sizeof(a));
13 __builtin_memmove(&a, &b, sizeof(a));
14 return 0;