aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_llvm_used.in
blob: b3c9f10ef82ef2a4c9d334c744dd7aa8e065af68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <emscripten.h>

extern "C" {
        EMSCRIPTEN_KEEPALIVE void foobar(int x) {
                printf("Worked! %d\n", x);
        }
}

int main() {
        emscripten_run_script("Module['_foobar'](10)");
        return 0;
}