diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/Transforms/RaiseAllocations/2004-11-08-FreeUseCrash.ll | |
download | src-test2-009b1c42aa6266385f2c37e227516b24077e6dd7.tar.gz src-test2-009b1c42aa6266385f2c37e227516b24077e6dd7.zip |
Notes
Diffstat (limited to 'test/Transforms/RaiseAllocations/2004-11-08-FreeUseCrash.ll')
-rw-r--r-- | test/Transforms/RaiseAllocations/2004-11-08-FreeUseCrash.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/RaiseAllocations/2004-11-08-FreeUseCrash.ll b/test/Transforms/RaiseAllocations/2004-11-08-FreeUseCrash.ll new file mode 100644 index 000000000000..10daa7620d22 --- /dev/null +++ b/test/Transforms/RaiseAllocations/2004-11-08-FreeUseCrash.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | opt -raiseallocs -disable-output + +define void @main() { + %tmp.13 = call i32 (...)* @free( i32 32 ) ; <i32> [#uses=1] + %tmp.14 = inttoptr i32 %tmp.13 to i32* ; <i32*> [#uses=0] + ret void +} + +declare i32 @free(...) + |