summaryrefslogtreecommitdiff
path: root/test/metadce/name_collision.wast
blob: 62d11c6975c516e0fe4d6e07fadb793b00c0a280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(module
  ;; This export is given the name "func$other" in the graph.text file, which
  ;; collides with the internal name we give the function $other. A unique name
  ;; should be generated for the function in the stdout that mentions it is
  ;; unused, specifically
  ;;
  ;;  unused: func$other$0
  ;;
  ;; (the $0 suffix keeps it unique).
  (export "test" (func $test))

  ;; This function is used by the export.
  (func $test)

  ;; This function is not used, and as mentioned above it will be called
  ;; func$other$0 in the output.
  (func $other)
)