Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (14 sloc) 0.512 kb
%%% File : cl_binary_test.erl
%%% Author : Tony Rogvall <tony@rogvall.se>
%%% Description : test build of binary programs
%%% Created : 7 Nov 2009 by Tony Rogvall <tony@rogvall.se>
-module(cl_binary_test).
-export([test/0]).
test() ->
E = clu:setup(),
{ok,P1} = clu:build_source(E, "__kernel void foo(int n) { int x; x = n; }"),
{ok,B} = clu:get_program_binaries(P1),
ok = cl:release_program(P1),
{ok,P2} = clu:build_binary(E, B),
ok = cl:release_program(P2),
ok.
Jump to Line
Something went wrong with that request. Please try again.