From 277e01cd643af71bd6e962f303747f7857ca23c1 Mon Sep 17 00:00:00 2001 From: bellard Date: Mon, 2 Jun 2003 20:31:46 +0000 Subject: [PATCH] const warning test --- tcctest.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tcctest.c b/tcctest.c index 494b4db..2b75916 100644 --- a/tcctest.c +++ b/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)); } + + +void const_func(const int a) +{ +} + +void const_warn_test(void) +{ + const_func(1); +}