aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/cgo/main.h
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-02-07 16:02:16 +0100
committerRon Evans <[email protected]>2021-02-11 09:51:15 +0100
commit2e9c3a1d8d5e59baee62ce12812f0ef37d112f33 (patch)
tree3f89a557d312c69c1466b0931a8ea22912551268 /testdata/cgo/main.h
parent550218264204aa62e9d602a1a380531040c18deb (diff)
downloadtinygo-2e9c3a1d8d5e59baee62ce12812f0ef37d112f33.tar.gz
tinygo-2e9c3a1d8d5e59baee62ce12812f0ef37d112f33.zip
cgo: add support for variadic functions
This doesn't yet add support for actually making use of variadic functions, but at least allows (unintended) variadic functions like the following to work: void foo();
Diffstat (limited to 'testdata/cgo/main.h')
-rw-r--r--testdata/cgo/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/testdata/cgo/main.h b/testdata/cgo/main.h
index b4ac4ee88..857a796ef 100644
--- a/testdata/cgo/main.h
+++ b/testdata/cgo/main.h
@@ -10,6 +10,9 @@ int doCallback(int a, int b, binop_t cb);
typedef int * intPointer;
void store(int value, int *ptr);
+int variadic0();
+int variadic2(int x, int y, ...);
+
# define CONST_INT 5
# define CONST_INT2 5llu
# define CONST_FLOAT 5.8