zig/test/behavior
Andrew Kelley 5c68afef94 AstGen: fix const locals with comptime initializations
`const foo = comptime ...` generated invalid ZIR when the initialization
expression contained an array literal because the
validate_array_init_comptime instruction assumed that the corresponding
alloc instruction was comptime. The solution is to look slightly ahead
and notice that the initialization expression would be comptime-known
and affect the alloc instruction tag accordingly.
2022-03-24 17:47:39 -07:00
..
2022-02-28 23:20:05 +01:00
2022-03-24 17:04:50 +01:00
2021-10-28 17:33:05 -07:00
2022-02-27 18:59:44 -05:00
2022-03-18 15:02:52 -07:00
2022-02-13 14:42:20 +02:00
2022-03-08 21:10:04 +01:00
2022-03-09 13:53:20 -07:00
2022-03-23 21:40:33 +01:00
2022-03-23 23:28:05 -07:00
2022-03-05 11:31:51 +01:00
2022-01-07 00:06:06 -05:00
2022-03-18 15:02:52 -07:00
2022-03-18 15:02:52 -07:00
2022-02-22 21:57:42 +01:00
2022-03-16 20:35:41 -07:00
2022-03-23 21:40:33 +01:00
2022-03-21 22:01:34 -04:00
2022-03-18 15:02:52 -07:00
2022-03-24 17:04:50 +01:00
2022-03-23 21:40:33 +01:00
2022-03-18 15:02:52 -07:00
2022-03-05 11:31:51 +01:00
2022-03-24 17:04:50 +01:00
2022-03-23 21:40:33 +01:00
2022-03-23 21:40:33 +01:00
2022-03-18 00:12:22 -07:00
2022-02-28 23:20:05 +01:00
2022-03-18 15:02:52 -07:00
2022-03-18 15:02:52 -07:00