mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
23 lines
231 B
Plaintext
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;
|
|
} |