Files
Nim/tests/ccgbugs/tcodegenbug_bool.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

12 lines
130 B
Nim

discard """
"""
# issue #13798
{.emit:"""
#include <stdbool.h>
void fun(bool a){}
""".}
proc fun(a: bool) {.importc.}
fun(true)