Skip to content

Commit

Permalink
fixup: once more, with feeling
Browse files Browse the repository at this point in the history
  • Loading branch information
kgiusti committed Dec 18, 2024
1 parent 4215009 commit 6d4d2dd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/static_assert_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6d4d2dd

Please sign in to comment.