Dan Gohman | f2f6ce6 | 2009-09-11 18:01:28 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -simplify-libcalls -S > %t |
Nuno Lopes | fd99cab | 2012-06-25 23:26:10 +0000 | [diff] [blame^] | 2 | ; RUN: grep noalias %t | count 2 |
Nick Lewycky | b3ec5ba | 2009-01-18 04:46:10 +0000 | [diff] [blame] | 3 | ; RUN: grep nocapture %t | count 3 |
Nick Lewycky | 0f8df9a | 2009-01-04 20:27:34 +0000 | [diff] [blame] | 4 | ; RUN: grep nounwind %t | count 3 |
| 5 | ; RUN: grep readonly %t | count 1 |
| 6 | |
| 7 | declare i8* @fopen(i8*, i8*) |
| 8 | declare i8 @strlen(i8*) |
Nick Lewycky | b3ec5ba | 2009-01-18 04:46:10 +0000 | [diff] [blame] | 9 | declare i32* @realloc(i32*, i32) |
Nick Lewycky | 0f8df9a | 2009-01-04 20:27:34 +0000 | [diff] [blame] | 10 | |
| 11 | ; Test deliberately wrong declaration |
| 12 | declare i32 @strcpy(...) |