summaryrefslogtreecommitdiff
path: root/test cases/common/21 global arg/prog.c
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-07-20 23:32:55 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-08-20 22:04:53 +0300
commit7d62540263fabded41fea69b749c1ea65364d5ac (patch)
treea7126236036b2b8b4cbecda5822553620d68c304 /test cases/common/21 global arg/prog.c
parente0120b4586225a41e08af936bf3e04f4db78ac6f (diff)
downloadmeson-nativeargs.tar.gz
Added "native" kwarg to add_XXX_args. Closes #3669.nativeargs
Diffstat (limited to 'test cases/common/21 global arg/prog.c')
-rw-r--r--test cases/common/21 global arg/prog.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/test cases/common/21 global arg/prog.c b/test cases/common/21 global arg/prog.c
index ace5a0a5e..fb014c706 100644
--- a/test cases/common/21 global arg/prog.c
+++ b/test cases/common/21 global arg/prog.c
@@ -10,6 +10,42 @@
#error "Global argument not set"
#endif
+#ifdef GLOBAL_NATIVE
+ #ifndef ARG_NATIVE
+ #error "Global is native but arg_native is not set."
+ #endif
+
+ #ifdef GLOBAL_CROSS
+ #error "Both global native and global cross set."
+ #endif
+#else
+ #ifndef GLOBAL_CROSS
+ #error "Neither global_cross nor glogal_native is set."
+ #endif
+
+ #ifndef ARG_CROSS
+ #error "Global is cross but arg_cross is not set."
+ #endif
+
+ #ifdef ARG_NATIVE
+ #error "Global is cross but arg_native is set."
+ #endif
+#endif
+
+#ifdef GLOBAL_CROSS
+ #ifndef ARG_CROSS
+ #error "Global is cross but arg_cross is not set."
+ #endif
+#else
+ #ifdef ARG_CROSS
+ #error "Global is cross but arg_native is set."
+ #endif
+
+ #ifdef ARG_CROSS
+ #error "Global is native but arg cross is set."
+ #endif
+#endif
+
int main(int argc, char **argv) {
return 0;
}