| author | |
| committer | |
| log | 9b993565510ff210f0351019577b5c9bafbc7462 |
| tree | e7c40f12737180a7b10c35ad98cc6357dda705dd |
| parent | f2ca2ace0943a81e0fc5b59347feac177a71eb6c |
1 files changed, 6 insertions(+), 0 deletions(-)
test/translate_c.zig+6| ... | ... | @@ -1467,6 +1467,12 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 1467 | 1467 | "pub const ZERO = c_ulonglong(0);" |
| 1468 | 1468 | ); |
| 1469 | 1469 | |
| 1470 | cases.addC("bitwise not on u-suffixed 0 (zero) in macro definition", | |
| 1471 | "#define NOT_ZERO (~0U)" | |
| 1472 | , | |
| 1473 | "pub const NOT_ZERO = ~c_uint(0);" | |
| 1474 | ); | |
| 1475 | ||
| 1470 | 1476 | // cases.add("empty array with initializer", |
| 1471 | 1477 | // "int a[4] = {};" |
| 1472 | 1478 | // , |