aboutsummaryrefslogtreecommitdiff
path: root/tests/include
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2019-10-21 21:42:09 -0500
committerGanesh Viswanathan <dev@genotrance.com>2019-10-21 21:42:09 -0500
commit5f9a59fcc676170bf465d95971e700ca16959385 (patch)
tree78c9facb1b3bd263f36f15c70ba27aefcee07426 /tests/include
parent9b6469ca97b8614e6634379e8b7290b7dc4c8606 (diff)
downloadnimterop-override.tar.gz
nimterop-override.zip
Test cases for cOverrideoverride
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/test.c8
-rw-r--r--tests/include/test.h25
2 files changed, 33 insertions, 0 deletions
diff --git a/tests/include/test.c b/tests/include/test.c
index 18e444f..e9cb2aa 100644
--- a/tests/include/test.c
+++ b/tests/include/test.c
@@ -75,3 +75,11 @@ void *multiline2(void) {
}
void multiline3(void) {}
+
+int weirdfunc(char ***apple) {
+ return 1;
+}
+
+int weirdfunc2(char **apple) {
+ return 2;
+}
diff --git a/tests/include/test.h b/tests/include/test.h
index d062277..667f384 100644
--- a/tests/include/test.h
+++ b/tests/include/test.h
@@ -167,6 +167,31 @@ enum
TDEFL_BOGUS_3 = TDEFL_OUT_BUF_SIZE / TDEFL_BOGUS_1
};
+// cOverride
+struct foo { int foo[8][1]; };
+
+typedef struct tagBITMAPINFOHEADER{
+ int biClrImportant;
+} BITMAPINFOHEADER, * pBITMAPINFOHEADER;
+
+#define BIT 123u
+
+#define BIT2 123u
+
+#define BIT3 123
+
+typedef int ABC;
+
+typedef int DEF;
+
+typedef struct {
+ int **f1;
+} GHI;
+
+struct JKL {
+ int **f1;
+};
+
#ifdef __cplusplus
}
#endif