diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/c/func_call_user2.c')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/c/func_call_user2.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/c/func_call_user2.c b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/c/func_call_user2.c new file mode 100644 index 00000000..38ecb232 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/c/func_call_user2.c @@ -0,0 +1,16 @@ +#include <stdio.h> + +#define CMD_CHECK(expr) do { { expr; } CMDAssert(); } while (0) +#define INTERNAL(expr) do { internalUse = 1; { expr; } internalUse = 0; } while (0) + +int func(n) { + CMD_CHECK(fflush(stdout);); + CMD_CHECK(fflush(stdout)); + CMD_CHECK(fflush(stdout) ); + CMD_CHECK( fflush(stdout) ); + CMD_CHECK( fflush(stdout)); + CMD_CHECK( fflush(stdout);); + CMD_CHECK( fflush(stdout); ); + CMD_CHECK( INTERNAL(fflush(stdout)) ); + CMD_CHECK( INTERNAL(fflush(stdout) ); ); +} |