Fix a non-conformant OpenCL test case.
authorJoey Gouly <joey.gouly@arm.com>
Thu, 24 Jan 2013 15:24:54 +0000 (15:24 +0000)
committerJoey Gouly <joey.gouly@arm.com>
Thu, 24 Jan 2013 15:24:54 +0000 (15:24 +0000)
Program scope variables must be declared in the constant address space
and are required to be initialized.

llvm-svn: 173354

clang/test/SemaOpenCL/storageclass.cl

index c78e7cd..fdfe134 100644 (file)
@@ -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() {