source: tests/.expect/zero_one.txt@ 53f4b55

Last change on this file since 53f4b55 was 7959e56, checked in by Michael Brooks <mlbrooks@…>, 11 months ago

Eliminate libcfa-build warnings of missing int-to-pointer casts.

Replace a zero_t variable use with literal 0 when it's an argument to an intrinsic and we're generating final C code. Partially revert e0330d2cd1a. Such intrinsics are initialization/assignment of pointers; using the variable implies a missing cast, while using literal 0 needs no cast.

CodeGenerator.hpp
CodeGenerator.cpp

Put attibute unused on all zero_t/one_t object decls. It is needed on those whose uses are rewritten by the rule above.

Generate.cpp

  • Property mode set to 100644
File size: 112 bytes
Line 
1It's a Zero!
2It's a One!
3It's a Number!
42 2
50 0
642 42
70 0
81 1
942 42
101 1
11zero true
12zero true
13one false
14one false
Note: See TracBrowser for help on using the repository browser.