diff --git a/tests/static_assert_test.c b/tests/static_assert_test.c index ed8200717..b4f526488 100644 --- a/tests/static_assert_test.c +++ b/tests/static_assert_test.c @@ -20,15 +20,15 @@ #include "qpid/dispatch/static_assert.h" #ifndef NDEBUG -static unsigned long ul; -static long l; -static int i; +unsigned long static_assert_test_ul; +long static_assert_test_l; +int static_assert_test_i; -STATIC_ASSERT(IS_SAME(unsigned long, ul), ul is unsigned long); -STATIC_ASSERT(!IS_SAME(unsigned long, l), l is not unsigned long); +STATIC_ASSERT(IS_SAME(unsigned long, static_assert_test_ul), static_assert_test_ul is unsigned long); +STATIC_ASSERT(!IS_SAME(unsigned long, static_assert_test_l), static_assert_test_l is not unsigned long); -STATIC_ASSERT(!IS_SAME(int, l), l is not int); -STATIC_ASSERT(!IS_SAME(long, i), i is not long); +STATIC_ASSERT(!IS_SAME(int, static_assert_test_l), static_assert_test_l is not int); +STATIC_ASSERT(!IS_SAME(long, static_assert_test_i), static_assert_test_i is not long); #else int static_assert_test_dummy; // avoid empty file compilation error #endif