1 ; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s 2>&1 | FileCheck --check-prefixes=ERR %s
3 ; ERR: error: xnack setting of 'func2' function does not match module xnack setting
10 define void @func1() #0 {
15 define void @func2() #1 {
20 attributes #0 = { "target-features"="-xnack" }
21 attributes #1 = { "target-features"="+xnack" }
23 !llvm.module.flags = !{!0}
24 !0 = !{i32 1, !"amdgpu_code_object_version", i32 400}