Debian Codegraph @

clang/test/ParserHLSL/hlsl_resource_class_attr_error.hlsl

raw
1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -ast-dump -o - %s -verify
2
3 // expected-error@+1{{'resource_class' attribute takes one argument}}
4 struct [[hlsl::resource_class()]] Eg1 {
5 int i;
6 };
7
8 Eg1 e1;
9
10 // expected-warning@+1{{ResourceClass attribute argument not supported: gibberish}}
11 struct [[hlsl::resource_class(gibberish)]] Eg2 {
12 int i;
13 };
14
15 Eg2 e2;