aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-07-30 21:54:13 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-07-30 21:54:13 +0300
commit6ba724c5c792b1683aeee5f42ea9d836d2d75d84 (patch)
tree206f89ac443c0eb533a04f6d229c4d43e537bc6f /test cases
parent658a82651897676ab036d922b9603e81a5ba7333 (diff)
downloadmeson-6ba724c5c792b1683aeee5f42ea9d836d2d75d84.zip
meson-6ba724c5c792b1683aeee5f42ea9d836d2d75d84.tar.gz
meson-6ba724c5c792b1683aeee5f42ea9d836d2d75d84.tar.bz2
Forgot this one.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/43 has function/meson.build11
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/common/43 has function/meson.build b/test cases/common/43 has function/meson.build
new file mode 100644
index 0000000..8fccaef
--- /dev/null
+++ b/test cases/common/43 has function/meson.build
@@ -0,0 +1,11 @@
+project('has function', 'c')
+
+cc = meson.get_compiler('c')
+
+if not cc.has_function('printf', prefix : '#include<stdio.h>')
+ error('Existing function not found.')
+endif
+
+if cc.has_function('hfkerhisadf', prefix : '#include<stdio.h>')
+ error('Found non-existant function.')
+endif