summaryrefslogtreecommitdiff
path: root/test/example
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2021-02-26 11:14:37 +0100
committerGitHub <noreply@github.com>2021-02-26 11:14:37 +0100
commit54d13b1cab26e8b48d95b573e46ab672c0564d0f (patch)
tree6b2bd62e2200f59222ddf47c52437948d040594a /test/example
parentfd10f10d282f332e8c698da481747e34eb222901 (diff)
downloadbinaryen-54d13b1cab26e8b48d95b573e46ab672c0564d0f.tar.gz
binaryen-54d13b1cab26e8b48d95b573e46ab672c0564d0f.tar.bz2
binaryen-54d13b1cab26e8b48d95b573e46ab672c0564d0f.zip
Add TypedFunctionReferences feature to C and JS API (#3603)
Diffstat (limited to 'test/example')
-rw-r--r--test/example/c-api-kitchen-sink.c1
-rw-r--r--test/example/c-api-kitchen-sink.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c
index 359203e8b..0f9c33f5d 100644
--- a/test/example/c-api-kitchen-sink.c
+++ b/test/example/c-api-kitchen-sink.c
@@ -261,6 +261,7 @@ void test_features() {
printf("BinaryenFeatureMultivalue: %d\n", BinaryenFeatureMultivalue());
printf("BinaryenFeatureGC: %d\n", BinaryenFeatureGC());
printf("BinaryenFeatureMemory64: %d\n", BinaryenFeatureMemory64());
+ printf("BinaryenFeatureTypedFunctionReferences: %d\n", BinaryenFeatureTypedFunctionReferences());
printf("BinaryenFeatureAll: %d\n", BinaryenFeatureAll());
}
diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt
index c3226690e..66b9ab507 100644
--- a/test/example/c-api-kitchen-sink.txt
+++ b/test/example/c-api-kitchen-sink.txt
@@ -25,6 +25,7 @@ BinaryenFeatureReferenceTypes: 256
BinaryenFeatureMultivalue: 512
BinaryenFeatureGC: 1024
BinaryenFeatureMemory64: 2048
+BinaryenFeatureTypedFunctionReferences: 4096
BinaryenFeatureAll: 8191
(f32.neg
(f32.const -33.61199951171875)