1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - -fsyntax-only %s -verify
3 // expected-note@+1 {{declared here}}
9 // expected-error@+1 {{'a' does not refer to a value}}
13 // expected-error@+1 {{expected unqualified-id}}
14 template <typename Ty> cbuffer a { Ty f; };
16 // For back-compat reason, it is OK for multiple cbuffer/tbuffer use same name in hlsl.
17 // And these cbuffer name only used for reflection, cannot be removed.
31 // cbuffer/tbuffer name will not conflict with other variables.
36 // expected-error@+2 {{unknown type name 'oh'}}
37 // expected-error@+1 {{expected ';' after top level declarator}}
39 // expected-warning@+1 {{missing terminating ' character}}
40 this isn't even valid HLSL code
41 despite seeming totally reasonable
42 once you understand that HLSL
47 // expected-error@+1 {{unknown type name 'flaot'}}