brintos

brintos / llvm-project-archived public Read only

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