summaryrefslogtreecommitdiff
path: root/test/lld/em_asm.cpp
blob: b8c3db365d7bd28d324a826182081989660f9187 (plain)
1
2
3
4
5
6
7
8
#include <emscripten/em_asm.h>

int main() {
  EM_ASM({ Module.print("Hello \\ world\t\n"); });
  int x = EM_ASM_INT({ return $0 + $1; }, 13, 27);
  EM_ASM_({ Module.print("Got " + $0); }, x);
  return 0;
}