Fix an OpenCL test case. Pointer arguments to kernels must be declared with the
authorJoey Gouly <joey.gouly@arm.com>
Thu, 21 Feb 2013 12:06:32 +0000 (12:06 +0000)
committerJoey Gouly <joey.gouly@arm.com>
Thu, 21 Feb 2013 12:06:32 +0000 (12:06 +0000)
__global, __constant or __local qualifier.

llvm-svn: 175735

clang/test/CodeGenOpenCL/kernel-arg-info.cl

index 9d52736..7e35a33 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 %s -cl-kernel-arg-info -emit-llvm -o - | FileCheck %s
 
-kernel void foo(int *X, int Y, int anotherArg) {
+kernel void foo(global int *X, int Y, int anotherArg) {
   *X = Y + anotherArg;
 }