diff options
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 0000000..389047e --- /dev/null +++ b/test/Transforms/RaiseAllocations/2004-11-08-FreeUseCrash.ll @@ -0,0 +1,10 @@ +; RUN: llvm-upgrade < %s | llvm-as | opt -raiseallocs -disable-output +implementation ; Functions: + +void %main() { + %tmp.13 = call int (...)* %free( int 32 ) + %tmp.14 = cast int %tmp.13 to int* + ret void +} + +declare int %free(...) |