blob: f33eac072c4e75c4adf04aab150f6372f9e89b48 [file] [log] [blame]
Reid Spencera4987472005-04-25 02:50:08 +00001; Test that the ExitInMainOptimization pass works correctly
2; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | grep -c 'ret int 3' | grep 1
3
4declare void "exit"(int)
5declare void "exitonly"(int)
6
7implementation ; Functions:
8
9int "main"() {
10 call void "exitonly" ( int 3 )
11 call void "exit" ( int 3 )
12 ret int 0
13}