Files
c3c/test/test_suite/attributes/attr_link_err.c3
2024-03-11 18:10:40 +01:00

23 lines
435 B
Plaintext

fn void test(int x) @link(true, "abc", "cde")
{
}
fn void testc(int x) @link("abc", "cde")
{
}
fn void test2(int x) @link(true) // #error: Expected a constant string here
{
}
fn void test3(int x) @link(true, 2) // #error: Expected a constant string here
{
}
fn void test4(int x) @link("a", 2) // #error: Expected a constant string here
{
}
fn void test5(int x) @link(true, "a", 5, 5) // #error: Expected a constant string here
{
}