mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-01 04:20:09 +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