mirror of
https://github.com/ziglang/zig.git
synced 2025-12-10 16:23:07 +00:00
closes #14642 with modified fix suggested by Vexu in https://github.com/ziglang/zig/issues/14642#issuecomment-1775476042
9 lines
192 B
C
9 lines
192 B
C
|
|
void assert(int x) {}
|
|
#define FOO assert(0 && "error message")
|
|
|
|
// translate-c
|
|
// c_frontend=clang
|
|
//
|
|
// pub const FOO = assert((@as(c_int, 0) != 0) and (@intFromPtr("error message") != 0));
|