1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-30 20:29:25 +00:00
cc65/test/val/bug830.c
2019-04-25 15:19:53 +02:00

14 lines
211 B
C

#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