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