diff options
Diffstat (limited to 'test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll')
-rw-r--r-- | test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll b/test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll new file mode 100644 index 0000000..62f75e1 --- /dev/null +++ b/test/Transforms/GlobalOpt/2009-03-06-Anonymous.ll @@ -0,0 +1,11 @@ +; RUN: opt < %s -globalopt -S | grep internal | count 2 + +global i32 0 +define i32* @1() { + ret i32* @0 +} +define i32* @f() { +entry: + call i32* @1() + ret i32* %0 +} |