tests/simpleSEXP.R

library(RLLVMCompile)
f = function(x) { x }
ty = REALSXPType
fc = compileFunction(f, ty, list(ty), name = "f")

x = rnorm(10)
y = .llvm(fc, x)
stopifnot(identical(x, y))
duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.