blob: 11ee9b20cf5544eb1524028df2fc01e441103037 [file] [log] [blame]
// 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;
}