Mercurial > hg > CbC > CbC_llvm
comparison clang/test/SemaHLSL/group_shared_202x.hlsl @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
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 }; |