diff options
Diffstat (limited to 'tests/diagnostics/groupshared-local.slang')
| -rw-r--r-- | tests/diagnostics/groupshared-local.slang | 10 |
1 files changed, 10 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; +} |
