summaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyLibCalls/2009-01-04-Annotate.ll
blob: d557484f2a8790e470c6f1b4d7a706c735fa7155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: opt < %s -simplify-libcalls -S > %t
; RUN: grep noalias %t | count 1
; RUN: grep nocapture %t | count 3
; RUN: grep nounwind %t | count 3
; RUN: grep readonly %t | count 1

declare i8* @fopen(i8*, i8*)
declare i8 @strlen(i8*)
declare i32* @realloc(i32*, i32)

; Test deliberately wrong declaration
declare i32 @strcpy(...)