Files
c3c/test/test_suite2/assert/static_assert.c3

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
}