diff options
Diffstat (limited to 'test/CodeGen/Generic/global-ret0.ll')
-rw-r--r-- | test/CodeGen/Generic/global-ret0.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/global-ret0.ll b/test/CodeGen/Generic/global-ret0.ll new file mode 100644 index 0000000..74bff87 --- /dev/null +++ b/test/CodeGen/Generic/global-ret0.ll @@ -0,0 +1,8 @@ +; RUN: llc < %s + +@g = global i32 0 ; <i32*> [#uses=1] + +define i32 @main() { + %h = load i32* @g ; <i32> [#uses=1] + ret i32 %h +} |