]> granicus.if.org Git - clang/commitdiff
[OpenCL] Add test case for previous commit.
authorJoey Gouly <joey.gouly@gmail.com>
Fri, 3 Jan 2014 15:11:57 +0000 (15:11 +0000)
committerJoey Gouly <joey.gouly@gmail.com>
Fri, 3 Jan 2014 15:11:57 +0000 (15:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198422 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaOpenCL/invalid-constant.cl [new file with mode: 0644]

diff --git a/test/SemaOpenCL/invalid-constant.cl b/test/SemaOpenCL/invalid-constant.cl
new file mode 100644 (file)
index 0000000..c45811f
--- /dev/null
@@ -0,0 +1,2 @@
+// RUN: %clang_cc1 -verify %s 
+constant int no_init; // expected-error {{variable in constant address space must be initialized}}