diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-04-26 05:22:38 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-04-26 05:22:38 +0000 |
commit | 8fe86dde1cab3c6fe0e0c8b9d3539d1054001368 (patch) | |
tree | 1b443dc3a99b09f31b8c2b133a7bb5e2029475ec /test/Transforms/SimplifyLibCalls/ExitInMain.ll | |
parent | 43e0baece37f87c4aa5e658c9dbc61edf0c5e779 (diff) | |
download | external_llvm-8fe86dde1cab3c6fe0e0c8b9d3539d1054001368.zip external_llvm-8fe86dde1cab3c6fe0e0c8b9d3539d1054001368.tar.gz external_llvm-8fe86dde1cab3c6fe0e0c8b9d3539d1054001368.tar.bz2 |
* Add a test case for StrLenOptimization
* Rename ExitInMain and StrCat tests so they don't have the date the
regression was entered since they are feature tests, not regressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyLibCalls/ExitInMain.ll')
-rw-r--r-- | test/Transforms/SimplifyLibCalls/ExitInMain.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyLibCalls/ExitInMain.ll b/test/Transforms/SimplifyLibCalls/ExitInMain.ll new file mode 100644 index 0000000..29f69d1 --- /dev/null +++ b/test/Transforms/SimplifyLibCalls/ExitInMain.ll @@ -0,0 +1,13 @@ +; Test that the ExitInMainOptimization pass works correctly +; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | grep -c 'ret int 3' | grep 1 + +declare void %exit(int) +declare void %exitonly(int) + +implementation ; Functions: + +int %main () { + call void %exitonly ( int 3 ) + call void %exit ( int 3 ) + ret int 0 +} |