From ab5e26c53cf34a1839dd92d247b5e0a5cde432a0 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Tue, 7 Apr 2020 06:17:30 -0700 Subject: 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 --- tests/ccgbugs/mstatic_assert.nim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/ccgbugs/mstatic_assert.nim (limited to 'tests/ccgbugs/mstatic_assert.nim') diff --git a/tests/ccgbugs/mstatic_assert.nim b/tests/ccgbugs/mstatic_assert.nim new file mode 100644 index 000000000..dbf9c03d1 --- /dev/null +++ b/tests/ccgbugs/mstatic_assert.nim @@ -0,0 +1,6 @@ +{.emit:""" +NIM_STATIC_ASSERT(sizeof(bool) == 1, ""); +#warning "foo2" +NIM_STATIC_ASSERT(sizeof(bool) == 2, ""); +#warning "foo3" +""".} -- cgit 1.4.1-2-gfad0