[Piglit] [PATCH] Fix cllinkprogram build kernal faill for llvm3.7+

Meng Mengmeng mengmeng.meng at intel.com
Tue Jan 26 08:26:30 PST 2016


Clang now does not support funciton declration like:
int get_number();
And it does not support impilict spir-function call.

Signed-off-by: Meng Mengmeng <mengmeng.meng at 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)
-- 
1.9.1



More information about the Piglit mailing list