blob: 23a4d3b99a457e3d8aefabd0cf4c606ff34ec6c5 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 %s -emit-llvm -o - | grep llvm.memset | count 3
2
Eric Christophercd6ab8c2011-07-26 23:44:22 +00003typedef __SIZE_TYPE__ size_t;
4void *memset(void*, int, size_t);
5void bzero(void*, size_t);
Eric Christopher3883e662011-07-26 22:17:02 +00006
7void 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}