Pekka Jaaskelainen 17b91897e9 Allow clang to compile the "extern" storage class in OpenCL 1.2.
The tests (forgot to svn add, sorry!).

Patch from Fraser Cormack!

llvm-svn: 199907
2014-01-23 16:36:09 +00:00

10 lines
233 B
Common Lisp

// RUN: %clang_cc1 -x cl -cl-std=CL1.2 -emit-llvm %s -o - -verify | FileCheck %s
// expected-no-diagnostics
// CHECK: @foo = external global float
extern constant float foo;
kernel void test(global float* buf) {
buf[0] += foo;
}