| ... | ... | @@ -1216,9 +1216,9 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 1216 | 1216 | , &[_][]const u8{ |
| 1217 | 1217 | "pub const foo = @as(f32, 3.14);", |
| 1218 | 1218 | "pub const bar = @as(c_longdouble, 16.0e-2);", |
| 1219 | | "pub const FOO = 0.12345;", |
| 1220 | | "pub const BAR = 0.12345;", |
| 1221 | | "pub const baz = 1e1;", |
| 1219 | "pub const FOO = @as(f64, 0.12345);", |
| 1220 | "pub const BAR = @as(f64, 0.12345);", |
| 1221 | "pub const baz = @as(f64, 1e1);", |
| 1222 | 1222 | "pub const BAZ = @as(f32, 42e-3);", |
| 1223 | 1223 | "pub const foobar = -@as(c_longdouble, 73.0);", |
| 1224 | 1224 | }); |
| ... | ... | @@ -1230,10 +1230,10 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 1230 | 1230 | \\#define BAZ -0x.0a5dp+12 |
| 1231 | 1231 | \\#define FOOBAZ 0xfE.P-1l |
| 1232 | 1232 | , &[_][]const u8{ |
| 1233 | | "pub const FOO = 0xf7p38;", |
| 1233 | "pub const FOO = @as(f64, 0xf7p38);", |
| 1234 | 1234 | "pub const BAR = -@as(f32, 0x8F.BP5);", |
| 1235 | | "pub const FOOBAR = 0x0P+0;", |
| 1236 | | "pub const BAZ = -0x0.0a5dp+12;", |
| 1235 | "pub const FOOBAR = @as(f64, 0x0P+0);", |
| 1236 | "pub const BAZ = -@as(f64, 0x0.0a5dp+12);", |
| 1237 | 1237 | "pub const FOOBAZ = @as(c_longdouble, 0xfE.0P-1);", |
| 1238 | 1238 | }); |
| 1239 | 1239 | |