[cfe-commits] r173354 - /cfe/trunk/test/SemaOpenCL/storageclass.cl
Joey Gouly
joey.gouly at arm.com
Thu Jan 24 07:24:54 PST 2013
Author: joey
Date: Thu Jan 24 09:24:54 2013
New Revision: 173354
URL: http://llvm.org/viewvc/llvm-project?rev=173354&view=rev
Log:
Fix a non-conformant OpenCL test case.
Program scope variables must be declared in the constant address space
and are required to be initialized.
Modified:
cfe/trunk/test/SemaOpenCL/storageclass.cl
Modified: cfe/trunk/test/SemaOpenCL/storageclass.cl
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaOpenCL/storageclass.cl?rev=173354&r1=173353&r2=173354&view=diff
==============================================================================
--- cfe/trunk/test/SemaOpenCL/storageclass.cl (original)
+++ cfe/trunk/test/SemaOpenCL/storageclass.cl Thu Jan 24 09:24:54 2013
@@ -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() {
More information about the cfe-commits
mailing list