aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-07-30 03:18:10 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-07-31 01:58:10 -0400
commit817fa3af8631d894004fbdb668da0882836dbe9b (patch)
tree3e63751b5ebb46fe8c45eca41a5248075d97bda8 /test
parent43b830415368ac4fb08bf5e154a222a38baf4a24 (diff)
downloadzig-817fa3af8631d894004fbdb668da0882836dbe9b.tar.gz
zig-817fa3af8631d894004fbdb668da0882836dbe9b.zip
std: cleanup asm usage
After fixing some issues with inline assembly in the C backend, the std cleanups have the side effect of making these functions compatible with the backend, allowing it to be used on linux without linking libc.
Diffstat (limited to 'test')
-rw-r--r--test/behavior/fn.zig1
-rw-r--r--test/tests.zig1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/behavior/fn.zig b/test/behavior/fn.zig
index e7b7e63e33..1a5becc6b0 100644
--- a/test/behavior/fn.zig
+++ b/test/behavior/fn.zig
@@ -151,6 +151,7 @@ fn fnWithUnreachable() noreturn {
test "extern struct with stdcallcc fn pointer" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
+ if (builtin.zig_backend == .stage2_c and builtin.cpu.arch == .x86) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
const S = extern struct {
diff --git a/test/tests.zig b/test/tests.zig
index d42344cb88..593d056f93 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -1053,6 +1053,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
// TODO stop violating these pedantic errors. spotted on linux
"-Wno-address-of-packed-member",
"-Wno-gnu-folding-constant",
+ "-Wno-incompatible-function-pointer-types",
"-Wno-incompatible-pointer-types",
"-Wno-overlength-strings",
// TODO stop violating these pedantic errors. spotted on darwin