mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 15:44:18 +08:00
const warning test
This commit is contained in:
parent
9d95be78c8
commit
277e01cd64
10
tcctest.c
10
tcctest.c
@ -1943,3 +1943,13 @@ void builtin_test(void)
|
|||||||
printf("res = %d\n", __builtin_constant_p(&constant_p_var));
|
printf("res = %d\n", __builtin_constant_p(&constant_p_var));
|
||||||
printf("res = %d\n", __builtin_constant_p(constant_p_var));
|
printf("res = %d\n", __builtin_constant_p(constant_p_var));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void const_func(const int a)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void const_warn_test(void)
|
||||||
|
{
|
||||||
|
const_func(1);
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user