YouCompleteMe/cpp/llvm/test/Transforms/FunctionAttrs/2010-10-30-volatile.ll

11 lines
168 B
LLVM
Raw Normal View History

2012-07-05 20:51:06 -04:00
; RUN: opt < %s -functionattrs -S | FileCheck %s
; PR8279
@g = constant i32 1
define void @foo() {
; CHECK: void @foo() {
%tmp = load volatile i32* @g
ret void
}