1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -fsyntax-only -verify %s
\r
3 typedef vector<float, 3> float3;
\r
5 StructuredBuffer<float3> Buffer;
\r
7 // expected-error@+2 {{class template 'StructuredBuffer' requires template arguments}}
\r
8 // expected-note@*:* {{template declaration from hidden source: template <class element_type> class StructuredBuffer}}
\r
9 StructuredBuffer BufferErr1;
\r
11 // expected-error@+2 {{too few template arguments for class template 'StructuredBuffer'}}
\r
12 // expected-note@*:* {{template declaration from hidden source: template <class element_type> class StructuredBuffer}}
\r
13 StructuredBuffer<> BufferErr2;
\r
17 (void)Buffer.__handle; // expected-error {{'__handle' is a private member of 'hlsl::StructuredBuffer<vector<float, 3>>'}}
\r
18 // expected-note@* {{implicitly declared private here}}
\r