blob: 1b6a6b4ca8131d197a4e1a74cad1629ee24ef95c [file] [log] [blame]
Dan Gohman3e054fe2009-09-08 22:34:10 +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(...)