Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaHLSL / BuiltIns / RWBuffers.hlsl
bloba9f6567aa00b8c3ed2c6246b9a3711af0799ad40
1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -fsyntax-only -verify %s
3 Resource ResourceDescriptorHeap[5];
4 typedef vector<float, 3> float3;
6 RWBuffer<float3> Buffer;
8 [numthreads(1,1,1)]
9 void main() {
10   (void)Buffer.h; // expected-error {{'h' is a private member of 'hlsl::RWBuffer<float __attribute__((ext_vector_type(3)))>'}}
11   // expected-note@* {{implicitly declared private here}}