aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/146 library at root/main
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/146 library at root/main')
-rw-r--r--meson/test cases/common/146 library at root/main/main.c5
-rw-r--r--meson/test cases/common/146 library at root/main/meson.build2
2 files changed, 7 insertions, 0 deletions
diff --git a/meson/test cases/common/146 library at root/main/main.c b/meson/test cases/common/146 library at root/main/main.c
new file mode 100644
index 000000000..eadf7e8ce
--- /dev/null
+++ b/meson/test cases/common/146 library at root/main/main.c
@@ -0,0 +1,5 @@
+extern int fn(void);
+
+int main(void) {
+ return 1 + fn();
+}
diff --git a/meson/test cases/common/146 library at root/main/meson.build b/meson/test cases/common/146 library at root/main/meson.build
new file mode 100644
index 000000000..557378ae5
--- /dev/null
+++ b/meson/test cases/common/146 library at root/main/meson.build
@@ -0,0 +1,2 @@
+exe = executable('main', 'main.c', link_with : lib)
+test('stuff works', exe)