mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Minor attribute combination checking (#2918)
* Minor attribute combination checking * Added tests to the test suite.
This commit is contained in:
9
test/test_suite/attributes/bad_combinations.c3
Normal file
9
test/test_suite/attributes/bad_combinations.c3
Normal file
@@ -0,0 +1,9 @@
|
||||
module test;
|
||||
fn void foo() @inline @noinline // #error: cannot be combined
|
||||
{}
|
||||
|
||||
fn void bar() @used @unused // #error: cannot be combined
|
||||
{}
|
||||
|
||||
fn bool baz() @nodiscard @noreturn // #error: cannot be combined
|
||||
{}
|
||||
Reference in New Issue
Block a user