mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
translate-c: additional test case for integer suffixes on 0
This commit is contained in:
parent
f2ca2ace09
commit
9b99356551
@ -1467,6 +1467,12 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
|
||||
"pub const ZERO = c_ulonglong(0);"
|
||||
);
|
||||
|
||||
cases.addC("bitwise not on u-suffixed 0 (zero) in macro definition",
|
||||
"#define NOT_ZERO (~0U)"
|
||||
,
|
||||
"pub const NOT_ZERO = ~c_uint(0);"
|
||||
);
|
||||
|
||||
// cases.add("empty array with initializer",
|
||||
// "int a[4] = {};"
|
||||
// ,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user