diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-24 04:06:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-24 04:06:04 +0000 |
commit | 7bf617ab024ae344087abaa584ee707a251c496b (patch) | |
tree | 7dbad5356771cd8d7f9b97c6d06f5434c99bab2a /test/Transforms/Inline/cfg_preserve_test.ll | |
parent | 4bd4aa5e3c41c0fc803e960252bb6fe75b804b1d (diff) |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Inline/cfg_preserve_test.ll')
-rw-r--r-- | test/Transforms/Inline/cfg_preserve_test.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/Inline/cfg_preserve_test.ll b/test/Transforms/Inline/cfg_preserve_test.ll new file mode 100644 index 0000000000..83179a045c --- /dev/null +++ b/test/Transforms/Inline/cfg_preserve_test.ll @@ -0,0 +1,15 @@ +; This test ensures that inlining an "empty" function does not destroy the CFG +; +; RUN: as < %s | opt -inline | dis | not grep br + +int %func(int %i) { + ret int %i +} + +declare void %bar() + +int %main(int %argc) { +Entry: + %X = call int %func(int 7) + ret int %X +} |