Merge remote-tracking branch 'origin/master' into llvm8

This commit is contained in:
Andrew Kelley
2019-01-22 20:10:34 -05:00
6 changed files with 87 additions and 27 deletions

View File

@@ -1,6 +1,15 @@
const tests = @import("tests.zig");
pub fn addCases(cases: *tests.CompileErrorContext) void {
cases.add(
"compile log a pointer to an opaque value",
\\export fn entry() void {
\\ @compileLog(@ptrCast(*const c_void, &entry));
\\}
,
".tmp_source.zig:2:5: error: found compile log statement",
);
cases.add(
"duplicate boolean switch value",
\\comptime {