aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/vala/10 mixed sources/c/writec.py
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/vala/10 mixed sources/c/writec.py')
-rw-r--r--meson/test cases/vala/10 mixed sources/c/writec.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/meson/test cases/vala/10 mixed sources/c/writec.py b/meson/test cases/vala/10 mixed sources/c/writec.py
new file mode 100644
index 000000000..2cc822bae
--- /dev/null
+++ b/meson/test cases/vala/10 mixed sources/c/writec.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python3
+
+import sys
+
+c = '''int
+retval(void) {
+ return 0;
+}
+'''
+
+with open(sys.argv[1], 'w') as f:
+ f.write(c)