blob: 11ee9b20cf5544eb1524028df2fc01e441103037 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -o - -fsyntax-only %s -verify
int& bark(int); // expected-error {{references are unsupported in HLSL}}
void meow(int&); // expected-error {{references are unsupported in HLSL}}
void chirp(int &&); // expected-error {{references are unsupported in HLSL}}
struct Foo {
int X;
int Y;
};
int entry() {
int X;
int &Y = X; // expected-error {{references are unsupported in HLSL}}
}
int roar(Foo &F) { // expected-error {{references are unsupported in HLSL}}
return F.X;
}
|