1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-02 18:06:48 +00:00
cc65/test/val/bug830.c

14 lines
211 B
C
Raw Normal View History

2019-04-22 15:40:09 +00:00
#include "unittest.h"
char test[1];
char *dst = &test[0];
TEST
{
char src = 0;
*dst = (src == 0) ? 42 : src;
ASSERT_AreEqual(42, *dst, "%u", "Incorrect ternary expression evaluation!");
}
ENDTEST