summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lit/binary/custom-section-build-id.test7
-rw-r--r--test/lit/binary/custom-section-build-id.test.wasmbin0 -> 29 bytes
2 files changed, 7 insertions, 0 deletions
diff --git a/test/lit/binary/custom-section-build-id.test b/test/lit/binary/custom-section-build-id.test
new file mode 100644
index 000000000..65d886752
--- /dev/null
+++ b/test/lit/binary/custom-section-build-id.test
@@ -0,0 +1,7 @@
+# Verify that the build id is included in the source map.
+
+;; RUN: wasm-opt %s.wasm -o %t.wasm -osm %t.map
+;; RUN: cat %t.map | filecheck %s
+
+;; CHECK: {"version":3,"debugId":"01ab23cd45ef67ab89","sources":[],"names":[],"mappings":""}
+
diff --git a/test/lit/binary/custom-section-build-id.test.wasm b/test/lit/binary/custom-section-build-id.test.wasm
new file mode 100644
index 000000000..caa70f821
--- /dev/null
+++ b/test/lit/binary/custom-section-build-id.test.wasm
Binary files differ