|
10 | 10 | " invalid " \
|
11 | 11 | ")"
|
12 | 12 |
|
13 |
| -[RootSignature(InvalidToken)] // expected-error {{unable to lex a valid Root Signature token}} |
| 13 | +[RootSignature(InvalidToken)] // expected-error {{expected one of the following token kinds: CBV, SRV, UAV, Sampler}} |
14 | 14 | void bad_root_signature_1() {}
|
15 | 15 |
|
16 | 16 | #define InvalidEmptyNumber \
|
17 | 17 | "DescriptorTable( " \
|
18 | 18 | " CBV(t32, space = +) " \
|
19 | 19 | ")"
|
20 | 20 |
|
21 |
| -[RootSignature(InvalidEmptyNumber)] // expected-error {{expected number literal is not a supported number literal of unsigned integer or integer}} |
| 21 | +// expected-error@+1 {{expected the following token kind: integer literal}} |
| 22 | +[RootSignature(InvalidEmptyNumber)] |
22 | 23 | void bad_root_signature_2() {}
|
23 | 24 |
|
24 | 25 | #define InvalidOverflowNumber \
|
25 | 26 | "DescriptorTable( " \
|
26 | 27 | " CBV(t32, space = 98273498327498273487) " \
|
27 | 28 | ")"
|
28 | 29 |
|
29 |
| -[RootSignature(InvalidOverflowNumber)] // expected-error {{provided unsigned integer literal '98273498327498273487' that overflows the maximum of 32 bits}} |
| 30 | +// expected-error@+1 {{integer literal '98273498327498273487' is too large to be represented in a 32-bit integer type}} |
| 31 | +[RootSignature(InvalidOverflowNumber)] |
30 | 32 | void bad_root_signature_3() {}
|
31 | 33 |
|
32 |
| -#define InvalidEOS \ |
33 |
| - "DescriptorTable( " |
34 |
| - |
35 | 34 | // Parser related tests
|
36 | 35 |
|
37 |
| -[RootSignature(InvalidEOS)] // expected-error {{unexpected end to token stream}} |
| 36 | +#define InvalidEOS \ |
| 37 | + "DescriptorTable( " \ |
| 38 | + " CBV(" |
| 39 | + |
| 40 | +[RootSignature(InvalidEOS)] // expected-error {{expected one of the following token kinds: b register, t register, u register, s register}} |
38 | 41 | void bad_root_signature_4() {}
|
39 | 42 |
|
40 | 43 | #define InvalidTokenKind \
|
41 | 44 | "DescriptorTable( " \
|
42 |
| - " DescriptorTable()" \ |
| 45 | + " SRV(s0, CBV())" \ |
43 | 46 | ")"
|
44 | 47 |
|
45 |
| -[RootSignature(InvalidTokenKind)] // expected-error {{expected the one of the following token kinds 'CBV, SRV, UAV, Sampler'}} |
| 48 | +[RootSignature(InvalidTokenKind)] // expected-error {{expected one of the following token kinds: offset, numDescriptors, space, flags}} |
46 | 49 | void bad_root_signature_5() {}
|
47 | 50 |
|
48 | 51 | #define InvalidRepeat \
|
|
0 commit comments