diff options
Diffstat (limited to 'test/Transforms/FunctionAttrs/2010-10-30-volatile.ll')
-rw-r--r-- | test/Transforms/FunctionAttrs/2010-10-30-volatile.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/FunctionAttrs/2010-10-30-volatile.ll b/test/Transforms/FunctionAttrs/2010-10-30-volatile.ll new file mode 100644 index 0000000..f21fabc --- /dev/null +++ b/test/Transforms/FunctionAttrs/2010-10-30-volatile.ll @@ -0,0 +1,10 @@ +; RUN: opt < %s -functionattrs -S | FileCheck %s +; PR8279 + +@g = constant i32 1 + +define void @foo() { +; CHECK: void @foo() { + %tmp = volatile load i32* @g + ret void +} |