diff options
author | Joey Gouly <joey.gouly@gmail.com> | 2014-01-03 15:11:57 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@gmail.com> | 2014-01-03 15:11:57 +0000 |
commit | 0ffdff87a3f4745f2dabab7be8af59bf0c5d6531 (patch) | |
tree | cd44aa93d695765bcd42cbbaaafbaea91a1e7141 /test/SemaOpenCL | |
parent | 3e02453eec7bae9e72dfccf13754d09babffd490 (diff) |
[OpenCL] Add test case for previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198422 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaOpenCL')
-rw-r--r-- | test/SemaOpenCL/invalid-constant.cl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaOpenCL/invalid-constant.cl b/test/SemaOpenCL/invalid-constant.cl new file mode 100644 index 0000000000..c45811f402 --- /dev/null +++ b/test/SemaOpenCL/invalid-constant.cl @@ -0,0 +1,2 @@ +// RUN: %clang_cc1 -verify %s +constant int no_init; // expected-error {{variable in constant address space must be initialized}} |