cppcheck/test/cli/proj-suppress-syntaxError/1.c

9 lines
172 B
C
Raw Normal View History

2019-05-01 11:54:13 +02:00
void validCode(int argInt)
{
// if G_UNLIKELY is not defined this results in a syntax error
2021-08-07 20:51:18 +02:00
if G_UNLIKELY(argInt == 1) {} else if (G_UNLIKELY(argInt == 2)) {}
2019-05-01 11:54:13 +02:00
}