xref: /llvm-project/clang/test/CodeGenHLSL/convergent-functions.hlsl (revision 3d469c0e7c3072f0dad0f5e9bd0c74dffaf83cd3)
1// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.4-library -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s
2// RUN: %clang_cc1 -triple spirv-linux-vulkan-library -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s
3
4void fn() {
5};
6
7// CHECK: define{{.*| }}void {{.*}}fn{{.*}}()
8// CHECK-SAME: #[[Attr:[0-9]+]]
9// CHECK: attributes #[[Attr]] = { {{[^}]*}}convergent{{[^}]*}} }
10