mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Run a post-pass that marks known function declarations by name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
12
test/Transforms/SimplifyLibCalls/2009-01-04-Annotate.ll
Normal file
12
test/Transforms/SimplifyLibCalls/2009-01-04-Annotate.ll
Normal file
@@ -0,0 +1,12 @@
|
||||
; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis > %t
|
||||
; RUN: grep noalias %t | count 2
|
||||
; RUN: grep nocapture %t | count 2
|
||||
; 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*)
|
||||
|
||||
; Test deliberately wrong declaration
|
||||
declare i32 @strcpy(...)
|
Reference in New Issue
Block a user