aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/testFuncs3.c13
-rw-r--r--test/testFuncs3.h22
2 files changed, 34 insertions, 1 deletions
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 <complex.h>
+
+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 <uchar.h>
#include <wchar.h>
#include <wctype.h>
-#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)