| author | |
| committer | |
| log | 1357bc7430e48137b249c6930b4f03c48efa0f33 |
| tree | 9ce52349a3124d2229a3d125c801fdc39dcdf734 |
| parent | 0d1ce1fb5fb4bcfff0dc24b567220af6ec6b93ab |
| signature |
1 files changed, 9 insertions(+), 0 deletions(-)
test/compile_errors.zig+9| ... | ... | @@ -1,6 +1,15 @@ |
| 1 | 1 | const tests = @import("tests.zig"); |
| 2 | 2 | |
| 3 | 3 | pub fn addCases(cases: *tests.CompileErrorContext) void { |
| 4 | cases.add( | |
| 5 | "compile log a pointer to an opaque value", | |
| 6 | \\export fn entry() void { | |
| 7 | \\ @compileLog(@ptrCast(*const c_void, &entry)); | |
| 8 | \\} | |
| 9 | , | |
| 10 | ".tmp_source.zig:2:5: error: found compile log statement", | |
| 11 | ); | |
| 12 | ||
| 4 | 13 | cases.add( |
| 5 | 14 | "duplicate boolean switch value", |
| 6 | 15 | \\comptime { |