| 1 |
// RUN: %clang_cc1 -res-may-alias -std=hlsl202x -triple dxilv1.3-unknown-shadermodel6.3-library \ |
| 2 |
// RUN: -finclude-default-header -emit-llvm -o - %s 2>&1 | FileCheck %s --check-prefix=FLAG |
| 3 |
// RUN: %clang_cc1 -std=hlsl202x -triple dxilv1.3-unknown-shadermodel6.3-library \ |
| 4 |
// RUN: -finclude-default-header -emit-llvm -o - %s 2>&1 | FileCheck %s --check-prefix=NOFLAG |
| 5 |
|
| 6 |
// FLAG-DAG: ![[RMA:.*]] = !{i32 1, !"dx.resmayalias", i32 1} |
| 7 |
// FLAG-DAG: !llvm.module.flags = !{{{.*}}![[RMA]]{{.*}}} |
| 8 |
|
| 9 |
// NOFLAG-NOT: dx.resmayalias |