blob: 52fe14636108b4e7a2ff6bc70c89fb975e0ab770 [file] [log] [blame]
Dan Gohmanb1e1e822009-09-08 16:50:01 +00001; RUN: opt %s -simplify-libcalls | llvm-dis > %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(...)