| ... | @@ -1467,6 +1467,12 @@ pub fn addCases(cases: *tests.TranslateCContext) void { | ... | @@ -1467,6 +1467,12 @@ pub fn addCases(cases: *tests.TranslateCContext) void { |
| 1467 | "pub const ZERO = c_ulonglong(0);" | 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 | // cases.add("empty array with initializer", | 1476 | // cases.add("empty array with initializer", |
| 1471 | // "int a[4] = {};" | 1477 | // "int a[4] = {};" |
| 1472 | // , | 1478 | // , |