diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-07-20 23:32:55 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-08-20 22:04:53 +0300 |
commit | 7d62540263fabded41fea69b749c1ea65364d5ac (patch) | |
tree | a7126236036b2b8b4cbecda5822553620d68c304 /test cases/common/21 global arg/prog.c | |
parent | e0120b4586225a41e08af936bf3e04f4db78ac6f (diff) | |
download | meson-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.c | 36 |
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; } |