Files
c3c/test/test_suite/assert/static_assert.c3
2021-11-16 17:46:44 +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
}