Further #2226 fixes.

This commit is contained in:
Christoffer Lerno
2025-06-21 23:18:17 +02:00
parent 07bd37da43
commit 2bbc6cbbca
10 changed files with 42 additions and 9 deletions

View File

@@ -0,0 +1,23 @@
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;
}