summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/opencl-image-access.cl
diff options
context:
space:
mode:
authorGuy Benyei <guy.benyei@intel.com>2012-12-18 14:30:41 +0000
committerGuy Benyei <guy.benyei@intel.com>2012-12-18 14:30:41 +0000
commit11169dded0cbb723aa7534670e7cd24873635ffa (patch)
treea4c8cb7c254856778c3a6136c80cb15cce12f465 /clang/test/Parser/opencl-image-access.cl
parenta2ce1e0055a3f4656877eea7d75d7dde78aa173f (diff)
downloadbcm5719-llvm-11169dded0cbb723aa7534670e7cd24873635ffa.tar.gz
bcm5719-llvm-11169dded0cbb723aa7534670e7cd24873635ffa.zip
Revert changes from r170428, as I accidentally changed the line endings of these files to Windows style.
llvm-svn: 170431
Diffstat (limited to 'clang/test/Parser/opencl-image-access.cl')
-rw-r--r--clang/test/Parser/opencl-image-access.cl30
1 files changed, 16 insertions, 14 deletions
diff --git a/clang/test/Parser/opencl-image-access.cl b/clang/test/Parser/opencl-image-access.cl
index 3496d12a3e5..313587c1d22 100644
--- a/clang/test/Parser/opencl-image-access.cl
+++ b/clang/test/Parser/opencl-image-access.cl
@@ -1,14 +1,16 @@
-// RUN: %clang_cc1 %s -fsyntax-only
-
-__kernel void f__ro(__read_only image2d_t a) { }
-
-__kernel void f__wo(__write_only image2d_t a) { }
-
-__kernel void f__rw(__read_write image2d_t a) { }
-
-
-__kernel void fro(read_only image2d_t a) { }
-
-__kernel void fwo(write_only image2d_t a) { }
-
-__kernel void frw(read_write image2d_t a) { }
+// RUN: %clang_cc1 %s -fsyntax-only
+
+typedef void* image2d_t;
+
+__kernel void f__ro(__read_only image2d_t a) { }
+
+__kernel void f__wo(__write_only image2d_t a) { }
+
+__kernel void f__rw(__read_write image2d_t a) { }
+
+
+__kernel void fro(read_only image2d_t a) { }
+
+__kernel void fwo(write_only image2d_t a) { }
+
+__kernel void frw(read_write image2d_t a) { }
OpenPOWER on IntegriCloud