Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.memset | count 3 |
2 | |||||
Eric Christopher | cd6ab8c | 2011-07-26 23:44:22 +0000 | [diff] [blame^] | 3 | typedef __SIZE_TYPE__ size_t; |
4 | void *memset(void*, int, size_t); | ||||
5 | void bzero(void*, size_t); | ||||
Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 6 | |
7 | void test(int* X, char *Y) { | ||||
8 | // CHECK: call i8* llvm.memset | ||||
9 | memset(X, 4, 1000); | ||||
10 | // CHECK: call void bzero | ||||
11 | bzero(Y, 100); | ||||
12 | } |