| 1 |
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -std=hlsl202x -o - -fsyntax-only %s -verify |
| 2 |
|
| 3 |
// expected-error@+1 {{return type cannot be qualified with address space}} |
| 4 |
auto func() -> groupshared void; |
| 5 |
|
| 6 |
// expected-error@+1 {{parameter may not be qualified with an address space}} |
| 7 |
auto func(float groupshared) -> void; |
| 8 |
|
| 9 |
// expected-error@+1 {{parameter may not be qualified with an address space}} |
| 10 |
auto l = [](groupshared float ) {}; |
| 11 |
|
| 12 |
// expected-error@+1 {{return type cannot be qualified with address space}} |
| 13 |
auto l2 = []() -> groupshared void {}; |
| 14 |
|
| 15 |
struct S { |
| 16 |
// expected-error@+1 {{return type cannot be qualified with address space}} |
| 17 |
operator groupshared int() const; |
| 18 |
|
| 19 |
}; |