FileCheck-ize the tests.
[oota-llvm.git] / test / Transforms / SimplifyLibCalls / 2009-01-04-Annotate.ll
1 ; RUN: opt < %s -simplify-libcalls -S | FileCheck %s
2
3 ; CHECK: declare noalias i8* @fopen(i8* nocapture, i8* nocapture) nounwind
4 declare i8* @fopen(i8*, i8*)
5
6 ; CHECK: declare i8 @strlen(i8* nocapture) nounwind readonly
7 declare i8 @strlen(i8*)
8
9 ; CHECK: declare noalias i32* @realloc(i32* nocapture, i32) nounwind
10 declare i32* @realloc(i32*, i32)
11
12 ; Test deliberately wrong declaration
13 declare i32 @strcpy(...)
14
15 ; CHECK-NOT: strcpy{{.*}}noalias
16 ; CHECK-NOT: strcpy{{.*}}nocapture
17 ; CHECK-NOT: strcpy{{.*}}nounwind
18 ; CHECK-NOT: strcpy{{.*}}readonly