aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/cgo/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/cgo/main.c')
-rw-r--r--testdata/cgo/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testdata/cgo/main.c b/testdata/cgo/main.c
index 7fb702ed6..4a5bd6b9c 100644
--- a/testdata/cgo/main.c
+++ b/testdata/cgo/main.c
@@ -1,5 +1,6 @@
#include <math.h>
#include "main.h"
+#include <stdio.h>
int global = 3;
bool globalBool = 1;
@@ -72,3 +73,7 @@ void arraydecay(int buf1[5], int buf2[3][8], int buf3[4][7][2]) {
double doSqrt(double x) {
return sqrt(x);
}
+
+void printf_single_int(char *format, int arg) {
+ printf(format, arg);
+}