aboutsummaryrefslogtreecommitdiff
path: root/test/standalone.zig
diff options
context:
space:
mode:
authorEvan Haas <evan@lagerdata.com>2022-08-21 10:58:08 -0700
committerVeikka Tuominen <git@vexu.eu>2022-08-26 11:24:57 +0300
commitbcaa9df5b42747577dcb529a99f6da6d69e09309 (patch)
tree3e3a96c92a7db9c2da04d8a1e09d1eae8c106965 /test/standalone.zig
parentd6bb9af18da6f1e6d4e62a111c69a58c91b21a7e (diff)
downloadzig-bcaa9df5b42747577dcb529a99f6da6d69e09309.tar.gz
zig-bcaa9df5b42747577dcb529a99f6da6d69e09309.zip
translate-c: Don't add self-defined macros to global name table
A self-defined macro is one of the form `#define FOO FOO` Those types of macros have never been translated; this change will cause any macros which refer to them to be translated as `@compileError` instead of referring to a non-existent identifier. Closes #12471
Diffstat (limited to 'test/standalone.zig')
-rw-r--r--test/standalone.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/standalone.zig b/test/standalone.zig
index 2a7902dfb2..bfd683ec4c 100644
--- a/test/standalone.zig
+++ b/test/standalone.zig
@@ -9,6 +9,7 @@ pub fn addCases(cases: *tests.StandaloneContext) void {
if (builtin.zig_backend == .stage1) { // https://github.com/ziglang/zig/issues/6025
cases.add("test/standalone/issue_9693/main.zig");
}
+ cases.add("test/standalone/issue_12471/main.zig");
cases.add("test/standalone/guess_number/main.zig");
cases.add("test/standalone/main_return_error/error_u8.zig");
cases.add("test/standalone/main_return_error/error_u8_non_zero.zig");