Sneed Group Holder
e18d08e951
Some checks are pending
ci / Linux (Ubuntu) (push) Waiting to run
ci / linux-asan (push) Waiting to run
ci / linux-msan (push) Waiting to run
ci / linux-ubsan (push) Waiting to run
ci / macOS (push) Waiting to run
ci / macos-asan (push) Waiting to run
ci / macos-ubsan (push) Waiting to run
ci / freebsd (push) Waiting to run
ci / qemu-alpine (arm32v6) (push) Waiting to run
ci / qemu-alpine (arm32v7) (push) Waiting to run
ci / qemu-alpine (arm64v8) (push) Waiting to run
ci / qemu-alpine (i386) (push) Waiting to run
ci / qemu-alpine (s390x) (push) Waiting to run
17 lines
541 B
C
17 lines
541 B
C
// note: file is not actually compiled, only checked for C syntax errors
|
|
#include "quickjs.h"
|
|
|
|
int main(void)
|
|
{
|
|
JSRuntime *rt = JS_NewRuntime();
|
|
JSContext *ctx = JS_NewContext(rt);
|
|
JS_FreeValue(ctx, JS_NAN);
|
|
JS_FreeValue(ctx, JS_UNDEFINED);
|
|
JS_FreeValue(ctx, JS_NewFloat64(ctx, 42));
|
|
// not a legal way of using JS_MKPTR but this is here
|
|
// to have the compiler syntax-check its definition
|
|
JS_FreeValue(ctx, JS_MKPTR(JS_TAG_UNINITIALIZED, 0));
|
|
JS_FreeContext(ctx);
|
|
JS_FreeRuntime(rt);
|
|
return 0;
|
|
}
|