summaryrefslogtreecommitdiffstats
path: root/test cases/vala/10 mixed sources/c/writec.py
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/vala/10 mixed sources/c/writec.py')
-rw-r--r--test cases/vala/10 mixed sources/c/writec.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test cases/vala/10 mixed sources/c/writec.py b/test cases/vala/10 mixed sources/c/writec.py
new file mode 100644
index 0000000..2cc822b
--- /dev/null
+++ b/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)