On Wednesday 27 January 2016 00:26:30 Meng Mengmeng wrote: > Clang now does not support funciton declration like: > int get_number(); > And it does not support impilict spir-function call.
This is strange it seems to work fine here. Do you try with this patch : cl: improve clLinkProgram (https://patchwork.freedesktop.org/patch/60994/), that languish since October > > Signed-off-by: Meng Mengmeng <mengmeng.m...@intel.com> > --- > tests/cl/api/link-program.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tests/cl/api/link-program.c b/tests/cl/api/link-program.c > index e98f428..d9abe27 100644 > --- a/tests/cl/api/link-program.c > +++ b/tests/cl/api/link-program.c > @@ -51,10 +51,10 @@ PIGLIT_CL_API_TEST_CONFIG_END > > > const char* strings[] = { > - "int get_number() { return 42; }", > - "int get_number();\n", > - "kernel void test_kernel() { int i = get_number(); }", > - "int get_number() { return 0; }" > + "int get_number(void) { return 42; }", > + "int get_number(void);\n", > + "int get_number(void);\nkernel void test_kernel(void) { int i = > get_number(); }", + "int get_number(void) { return 0; }" > }; > > #if defined(CL_VERSION_1_2) _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit