From 1983f2a20b47accac74ae0a28f1c905bbbf39e4f Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Wed, 4 Jan 2017 00:04:16 +0330 Subject: added tests for 19.4 --- test/testFuncs3.c | 13 +++++++++++++ test/testFuncs3.h | 22 +++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/testFuncs3.c b/test/testFuncs3.c index 9a7df7d..e2f1081 100644 --- a/test/testFuncs3.c +++ b/test/testFuncs3.c @@ -2,6 +2,10 @@ #include "testFuncs3.h" #include + +int intarray3[2][3] = MACRO1; +int answer = ANSWER; + void tddfunc1 (void) { double complex z1 = 10.0 + 10.0 * I; @@ -37,4 +41,13 @@ void tddfunc2(void) //uint16_t result_16; //uint16_t mode; result_8 = (~port) >> 4; +} + +void tddfunc3(void) +{ + int a = 1; + + READ_TIME_32(); + READ_TIME_33(); + READ_TIME_34(); } \ No newline at end of file diff --git a/test/testFuncs3.h b/test/testFuncs3.h index 910a130..9b78c99 100644 --- a/test/testFuncs3.h +++ b/test/testFuncs3.h @@ -28,4 +28,24 @@ #include #include #include -#endif \ No newline at end of file +#endif + +#define MACRO1 {{1,2},{3,4},{5,6}} + +#define READ_TIME_32() \ +do { \ +} while (0) + +#define READ_TIME_33() \ +do { \ + while(a<10)\ + {}\ +} while (0) + +#define READ_TIME_34() \ +do { \ + while(a>10)\ + {}\ +} while (a < 10) + +#define ANSWER (17U) -- cgit v1.2.3