Merge remote-tracking branch 'origin/master' into llvm8
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user