File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - %s -verify
2
+ // RUN: not %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - %s 2>&1 | FileCheck %s
2
3
3
4
// Attr test
4
5
@@ -22,3 +23,14 @@ void bad_root_signature_4() {}
22
23
// expected-error@+1 {{expected ')' to denote end of parameters, or, another valid parameter of RootConstants}}
23
24
[RootSignature ("RootConstants(b0, num32BitConstants = 1, invalid)" )]
24
25
void bad_root_signature_5 () {}
26
+
27
+ #define MultiLineRootSignature \
28
+ "CBV(b0)," \
29
+ "RootConstants(num32BitConstants = 3, b0, invalid)"
30
+
31
+ // CHECK: note: expanded from macro 'MultiLineRootSignature'
32
+ // CHECK-NEXT: [[@LINE-3]] | "RootConstants(num32BitConstants = 3, b0, invalid)"
33
+ // CHECK-NEXT: | ^
34
+ // expected-error@+1 {{expected ')' to denote end of parameters, or, another valid parameter of RootConstants}}
35
+ [RootSignature (MultiLineRootSignature)]
36
+ void bad_root_signature_6 () {}
You can’t perform that action at this time.
0 commit comments