From 0ffdff87a3f4745f2dabab7be8af59bf0c5d6531 Mon Sep 17 00:00:00 2001 From: Joey Gouly Date: Fri, 3 Jan 2014 15:11:57 +0000 Subject: [PATCH] [OpenCL] Add test case for previous commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198422 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaOpenCL/invalid-constant.cl | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 test/SemaOpenCL/invalid-constant.cl 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}} -- 2.40.0