Skip to content

Commit a9c2ffe

Browse files
Test new llvm-to-clang compilation pipeline
1 parent e40370f commit a9c2ffe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/testcore.jl

+10
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ end
5050
@test isa(r, Base.Process)
5151
@test r.exitcode == 0
5252

53+
filepath = compile_executable(foo, (), workdir, llvm_to_clang=true)
54+
r = run(`$filepath`);
55+
@test isa(r, Base.Process)
56+
@test r.exitcode == 0
57+
5358

5459
@inline function _puts(s::Ptr{UInt8}) # Can't use Base.println because it allocates
5560
Base.llvmcall(("""
@@ -85,6 +90,11 @@ end
8590
@test isa(r, Base.Process)
8691
@test r.exitcode == 0
8792

93+
filepath = compile_executable(print_args, (Int, Ptr{Ptr{UInt8}}), workdir, llvm_to_clang=true)
94+
r = run(`$filepath Hello, world!`);
95+
@test isa(r, Base.Process)
96+
@test r.exitcode == 0
97+
8898

8999
# Compile a function that definitely fails
90100
@inline foo_err() = UInt64(-1)

0 commit comments

Comments
 (0)