diff options
Diffstat (limited to 'test/Transforms/FunctionAttrs/2008-12-29-Constant.ll')
-rw-r--r-- | test/Transforms/FunctionAttrs/2008-12-29-Constant.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/FunctionAttrs/2008-12-29-Constant.ll b/test/Transforms/FunctionAttrs/2008-12-29-Constant.ll new file mode 100644 index 0000000..672b5e1 --- /dev/null +++ b/test/Transforms/FunctionAttrs/2008-12-29-Constant.ll @@ -0,0 +1,8 @@ +; RUN: opt < %s -functionattrs -S | grep readnone + +@s = external constant i8 ; <i8*> [#uses=1] + +define i8 @f() { + %tmp = load i8* @s ; <i8> [#uses=1] + ret i8 %tmp +} |