aboutsummaryrefslogtreecommitdiff
path: root/test/SemaOpenCL/to_addr_builtin.cl
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-05-30 17:37:44 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-05-30 17:37:44 +0000
commit550ae89a710bf458d47e5b1d183f5e7039c2b384 (patch)
tree4eab680d9198cddf87acb23a14c836472b21ae89 /test/SemaOpenCL/to_addr_builtin.cl
parentb5aee35cc5d62f11d98539f62e4fe63f0ac9edc6 (diff)
downloadsrc-550ae89a710bf458d47e5b1d183f5e7039c2b384.tar.gz
src-550ae89a710bf458d47e5b1d183f5e7039c2b384.zip
Vendor import of clang trunk r304222:vendor/clang/clang-trunk-r304222
Notes
Notes: svn path=/vendor/clang/dist/; revision=319233 svn path=/vendor/clang/clang-trunk-r304222/; revision=319234; tag=vendor/clang/clang-trunk-r304222
Diffstat (limited to 'test/SemaOpenCL/to_addr_builtin.cl')
-rw-r--r--test/SemaOpenCL/to_addr_builtin.cl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaOpenCL/to_addr_builtin.cl b/test/SemaOpenCL/to_addr_builtin.cl
index a145626cfcee..56db4abed579 100644
--- a/test/SemaOpenCL/to_addr_builtin.cl
+++ b/test/SemaOpenCL/to_addr_builtin.cl
@@ -10,7 +10,7 @@ void test(void) {
glob = to_global(glob, loc);
#if __OPENCL_C_VERSION__ < CL_VERSION_2_0
- // expected-warning@-2{{implicit declaration of function 'to_global' is invalid in C99}}
+ // expected-error@-2{{implicit declaration of function 'to_global' is invalid in OpenCL}}
// expected-warning@-3{{incompatible integer to pointer conversion assigning to '__global int *' from 'int'}}
#else
// expected-error@-5{{invalid number of arguments to function: 'to_global'}}