forked from OSchip/llvm-project
10 lines
233 B
Common Lisp
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;
|
||
|
}
|