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
This commit is contained in:
parent
b41931bf67
commit
ab5e26c53c
6 changed files with 110 additions and 54 deletions
6
tests/ccgbugs/mstatic_assert.nim
Normal file
6
tests/ccgbugs/mstatic_assert.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{.emit:"""
|
||||
NIM_STATIC_ASSERT(sizeof(bool) == 1, "");
|
||||
#warning "foo2"
|
||||
NIM_STATIC_ASSERT(sizeof(bool) == 2, "");
|
||||
#warning "foo3"
|
||||
""".}
|
||||
Loading…
Add table
Add a link
Reference in a new issue