diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/diagnostics/groupshared-local.slang | 10 | ||||
| -rw-r--r-- | tests/diagnostics/int-texture-sample.slang | 7 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/diagnostics/groupshared-local.slang b/tests/diagnostics/groupshared-local.slang new file mode 100644 index 000000000..02198320e --- /dev/null +++ b/tests/diagnostics/groupshared-local.slang @@ -0,0 +1,10 @@ +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): + +// CHECK-NOT: ([[# @LINE+1]]): error 31201 +groupshared int b; + +int test() +{ + // CHECK: ([[# @LINE+1]]): error 31201 + groupshared int a; +} diff --git a/tests/diagnostics/int-texture-sample.slang b/tests/diagnostics/int-texture-sample.slang new file mode 100644 index 000000000..696e13a60 --- /dev/null +++ b/tests/diagnostics/int-texture-sample.slang @@ -0,0 +1,7 @@ +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): + +void test(Texture2D<int4> itex, SamplerState s) +{ + // CHECK: ([[# @LINE+1]]): error + itex.Sample(s, float2(0.0, 0.0)); +} |
