aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/zig-disable-libc-note-test.patch
blob: 4d76139efbe832ca3fa691e45aa7d8d928e8f94b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
This test fails with "error.CompilationIncorrectlySucceeded".

diff --git a/test/compile_errors.zig b/test/compile_errors.zig
index fd1255c..20d5548 100644
--- a/test/compile_errors.zig
+++ b/test/compile_errors.zig
@@ -2751,15 +2751,15 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
             "tmp.zig:3:5: error: dependency on libc must be explicitly specified in the build command",
         });

-        cases.addTest("libc headers note",
-            \\const c = @cImport(@cInclude("stdio.h"));
-            \\export fn entry() void {
-            \\    _ = c.printf("hello, world!\n");
-            \\}
-        , &[_][]const u8{
-            "tmp.zig:1:11: error: C import failed",
-            "tmp.zig:1:11: note: libc headers not available; compilation does not link against libc",
-        });
+//        cases.addTest("libc headers note",
+//            \\const c = @cImport(@cInclude("stdio.h"));
+//            \\export fn entry() void {
+//            \\    _ = c.printf("hello, world!\n");
+//            \\}
+//        , &[_][]const u8{
+//            "tmp.zig:1:11: error: C import failed",
+//            "tmp.zig:1:11: note: libc headers not available; compilation does not link against libc",
+//        });
     }

     cases.addTest("comptime vector overflow shows the index",