r198422 - [OpenCL] Add test case for previous commit.
Joey Gouly
joey.gouly at gmail.com
Fri Jan 3 07:11:58 PST 2014
Author: joey
Date: Fri Jan 3 09:11:57 2014
New Revision: 198422
URL: http://llvm.org/viewvc/llvm-project?rev=198422&view=rev
Log:
[OpenCL] Add test case for previous commit.
Added:
cfe/trunk/test/SemaOpenCL/invalid-constant.cl
Added: cfe/trunk/test/SemaOpenCL/invalid-constant.cl
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaOpenCL/invalid-constant.cl?rev=198422&view=auto
==============================================================================
--- cfe/trunk/test/SemaOpenCL/invalid-constant.cl (added)
+++ cfe/trunk/test/SemaOpenCL/invalid-constant.cl Fri Jan 3 09:11:57 2014
@@ -0,0 +1,2 @@
+// RUN: %clang_cc1 -verify %s
+constant int no_init; // expected-error {{variable in constant address space must be initialized}}
More information about the cfe-commits
mailing list