const warning test

This commit is contained in:
bellard 2003-06-02 20:31:46 +00:00
parent 9d95be78c8
commit 277e01cd64

View File

@ -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));
}
void const_func(const int a)
{
}
void const_warn_test(void)
{
const_func(1);
}