Files
c3c/test/test_suite/functions/deprecation.c3
Christoffer Lerno 2bbc6cbbca Further #2226 fixes.
2025-06-21 23:18:17 +02:00

23 lines
231 B
Plaintext

fn int foo() @deprecated
{
if (false) foo();
return 1;
}
fn int main() @allow_deprecated
{
foo();
return 0;
}
fn int foo2() @deprecated
{
return 1;
}
fn int main2()
{
foo2(); // #warning: 'foo2' is deprecated
return 0;
}