Test that the CFE compiles memset and bzero to llvm.memset

llvm-svn: 11435
This commit is contained in:
Chris Lattner 2004-02-14 03:46:37 +00:00
parent cf81fc70a4
commit cd947e4b8b
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset | wc -l | grep 3
void test(int* X, char *Y) {
memset(X, 4, 1000);
bzero(Y, 100);
}