; Check that a DiagnosticUnsupported reported as a warning works
; correctly, and is not emitted as an error.
; CHECK: warning: test.c:2:20: in function use_lds_global_in_func i32 (): local memory global used by non-kernel function
targettriple="amdgcn-amd-amdhsa"
@lds=externaladdrspace(3)globali32,align4
definei32@use_lds_global_in_func()!dbg!5{
%load=loadi32,i32addrspace(3)*@lds,!dbg!9
reti32%load,!dbg!10
}
!llvm.dbg.cu=!{!0}
!llvm.module.flags=!{!3,!4}
!0=distinct!DICompileUnit(language:DW_LANG_C99,file:!1,producer:"clang version 3.9.0",isOptimized:false,runtimeVersion:0,emissionKind:FullDebug,enums:!2)