blob: 73eb05b05e346ecb752b664050022c55fa42c860 [file] [log] [blame]
Dan Gohmanf2f6ce62009-09-11 18:01:28 +00001; RUN: opt < %s -simplify-libcalls -S > %t
Nick Lewycky0f8df9a2009-01-04 20:27:34 +00002; RUN: grep noalias %t | count 2
Nick Lewyckyb3ec5ba2009-01-18 04:46:10 +00003; RUN: grep nocapture %t | count 3
Nick Lewycky0f8df9a2009-01-04 20:27:34 +00004; RUN: grep nounwind %t | count 3
5; RUN: grep readonly %t | count 1
6
7declare i8* @fopen(i8*, i8*)
8declare i8 @strlen(i8*)
Nick Lewyckyb3ec5ba2009-01-18 04:46:10 +00009declare i32* @realloc(i32*, i32)
Nick Lewycky0f8df9a2009-01-04 20:27:34 +000010
11; Test deliberately wrong declaration
12declare i32 @strcpy(...)