xref: /aosp_15_r20/external/clang/test/SemaOpenCL/extern.cl (revision 67e74705e28f6214e480b399dd47ea732279e315)
1// RUN: %clang_cc1 -x cl -cl-opt-disable -cl-std=CL1.2 -emit-llvm -ffake-address-space-map %s -o - -verify | FileCheck %s
2// expected-no-diagnostics
3
4// CHECK: @foo = external addrspace(3) constant float
5extern constant float foo;
6
7kernel void test(global float* buf) {
8  buf[0] += foo;
9}
10