Files
c3c/test/test_suite14/assert/static_assert.c3
2023-01-11 18:00:08 +01:00

8 lines
138 B
C

const int FOO = 2;
fn void test()
{
$assert(FOO == 2, "Bad");
$assert(FOO == 0, "Good"); // #error: Compile time assert - Good
}