diff options
Diffstat (limited to 'tests/ccgbugs/tcodegenbug_bool.nim')
-rw-r--r-- | tests/ccgbugs/tcodegenbug_bool.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ccgbugs/tcodegenbug_bool.nim b/tests/ccgbugs/tcodegenbug_bool.nim new file mode 100644 index 000000000..a0dbf4eb2 --- /dev/null +++ b/tests/ccgbugs/tcodegenbug_bool.nim @@ -0,0 +1,11 @@ +discard """ +""" + +# issue #13798 +{.emit:""" +#include <stdbool.h> +void fun(bool a){} +""".} + +proc fun(a: bool) {.importc.} +fun(true) |