tests2/numeric1.R

library(R2llvm)
f = function() {
     x = numeric(10L)
     Rf_protect(x)
     Rf_PrintValue(x)
     Rf_unprotect(1L)
     x
 }
fc = compileFunction(f)
#llvmAddSymbol("Rf_allocVector")

showModule(fc)
#gctorture(TRUE)
x = .llvm(fc)
#gctorture(FALSE)
# Why not identical to 0
duncantl/R2llvm documentation built on May 14, 2019, 9:42 a.m.