Files
Nim/tests/ccgbugs/mstatic_assert.nim
Timothee Cour ab5e26c53c fix some codegen bugs: NIM_BOOL, NIM_STATIC_ASSERT, --passc:-std=... (etc) (#13798)
* fix cgen bool D20200328T203812
* --passc:std=c++17 (etc) now works instead of silently ignored
* document caveats for NIM_NIL
2020-04-07 15:17:30 +02:00

7 lines
133 B
Nim

{.emit:"""
NIM_STATIC_ASSERT(sizeof(bool) == 1, "");
#warning "foo2"
NIM_STATIC_ASSERT(sizeof(bool) == 2, "");
#warning "foo3"
""".}