From 68bb7a6b1febbb96a60eef4e541a657c414bfda8 Mon Sep 17 00:00:00 2001 From: Joey Gouly Date: Thu, 24 Jan 2013 15:24:54 +0000 Subject: [PATCH] Fix a non-conformant OpenCL test case. Program scope variables must be declared in the constant address space and are required to be initialized. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173354 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaOpenCL/storageclass.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/SemaOpenCL/storageclass.cl b/test/SemaOpenCL/storageclass.cl index c78e7cd436..fdfe134621 100644 --- a/test/SemaOpenCL/storageclass.cl +++ b/test/SemaOpenCL/storageclass.cl @@ -1,6 +1,6 @@ // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only -cl-std=CL1.2 -static int A; +static constant int A = 0; // static is not allowed at local scope. void kernel foo() { -- 2.40.0