Skip to content

Commit 6a88507

Browse files
committed
Add tests for unsupported target
1 parent e88f537 commit 6a88507

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

clang/test/Lexer/bfloat-literal.cpp

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -38,34 +38,34 @@ __bf16 w = 1.F16bf16; // expected-error{{invalid suffix 'F16bf16' on floating co
3838

3939
#ifndef SUPPORTED
4040

41-
__bf16 a = 1.b; // expected-error{{__bf16 is not supported on this target}}
42-
__bf16 b = 1.bf; // expected-error{{__bf16 is not supported on this target}}
43-
__bf16 c = 1.bf166; // expected-error{{__bf16 is not supported on this target}}
44-
__bf16 d = 1.bf1; // expected-error{{__bf16 is not supported on this target}}
45-
46-
__bf16 e = 1.B; // expected-error{{__bf16 is not supported on this target}}
47-
__bf16 f = 1.BF; // expected-error{{__bf16 is not supported on this target}}
48-
__bf16 g = 1.BF166; // expected-error{{__bf16 is not supported on this target}}
49-
__bf16 h = 1.BF1; // expected-error{{__bf16 is not supported on this target}}
50-
51-
__bf16 i = 1.bf16; // expect-success
52-
__bf16 j = 1.BF16; // expect-success
53-
54-
__bf16 k = 1B; // expected-error{{invalid digit 'B' in decimal constant}}
55-
__bf16 l = 1BF; // expected-error{{invalid digit 'B' in decimal constant}}
56-
__bf16 m = 1BF166; // expected-error{{invalid digit 'B' in decimal constant}}
57-
__bf16 n = 1BF1; // expected-error{{invalid digit 'B' in decimal constant}}
58-
59-
__bf16 o = 1b; // expected-error{{invalid digit 'b' in decimal constant}}
60-
__bf16 p = 1bf; // expected-error{{invalid digit 'b' in decimal constant}}
61-
__bf16 q = 1bf166; // expected-error{{invalid digit 'b' in decimal constant}}
62-
__bf16 r = 1bf1; // expected-error{{invalid digit 'b' in decimal constant}}
63-
64-
__bf16 s = 1bf16; // expected-error{{invalid digit 'b' in decimal constant}}
65-
__bf16 t = 1BF16; // expected-error{{invalid digit 'B' in decimal constant}}
66-
67-
__bf16 u = 1.bf16F16; // expected-error{{invalid suffix 'bf16F16' on floating constant}}
68-
__bf16 v = 1.BF16f16; // expected-error{{invalid suffix 'BF16f16' on floating constant}}
69-
__bf16 w = 1.F16bf16; // expected-error{{invalid suffix 'F16bf16' on floating constant}}
41+
__bf16 a = 1.b; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'b' on floating constant}}
42+
__bf16 b = 1.bf; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'bf' on floating constant}}
43+
__bf16 c = 1.bf166; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'bf166' on floating constant}}
44+
__bf16 d = 1.bf1; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'bf1' on floating constant}}
45+
46+
__bf16 e = 1.B; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'B' on floating constant}}
47+
__bf16 f = 1.BF; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'BF' on floating constant}}
48+
__bf16 g = 1.BF166; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'BF166' on floating constant}}
49+
__bf16 h = 1.BF1; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'BF1' on floating constant}}
50+
51+
__bf16 i = 1.bf16; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'bf16' on floating constant}}
52+
__bf16 j = 1.BF16; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'BF16' on floating constant}}
53+
54+
__bf16 k = 1B; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid digit 'B' in decimal constant}}
55+
__bf16 l = 1BF; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid digit 'B' in decimal constant}}
56+
__bf16 m = 1BF166; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid digit 'B' in decimal constant}}
57+
__bf16 n = 1BF1; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid digit 'B' in decimal constant}}
58+
59+
__bf16 o = 1b; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid digit 'b' in decimal constant}}
60+
__bf16 p = 1bf; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid digit 'b' in decimal constant}}
61+
__bf16 q = 1bf166; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid digit 'b' in decimal constant}}
62+
__bf16 r = 1bf1; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid digit 'b' in decimal constant}}
63+
64+
__bf16 s = 1bf16; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid digit 'b' in decimal constant}}
65+
__bf16 t = 1BF16; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid digit 'B' in decimal constant}}
66+
67+
__bf16 u = 1.bf16F16; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'bf16F16' on floating constant}}
68+
__bf16 v = 1.BF16f16; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'BF16f16' on floating constant}}
69+
__bf16 w = 1.F16bf16; // expected-error{{__bf16 is not supported on this target}} expected-error{{invalid suffix 'F16bf16' on floating constant}}
7070

7171
#endif

0 commit comments

Comments
 (0)