diff --git a/translate_c/strlit_as_bool.c b/translate_c/strlit_as_bool.c new file mode 100644 index 000000000000..4ba0cfe2a4b2 --- /dev/null +++ b/translate_c/strlit_as_bool.c @@ -0,0 +1,8 @@ +void foo() { if(0 && "error message") {} } + +// translate-c +// c_frontend=clang +// +// pub export fn foo() void { +// if (false and (@intFromPtr("error message") != 0)) {} +// }