summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenOpenCL/local.cl
blob: 32fa7be0f764d38be8bc0d02112182474e27c32c (about) (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 %s -ffake-address-space-map -emit-llvm -o - | FileCheck %s

__kernel void foo(void) {
  // CHECK: @foo.i = internal addrspace(2)
  __local int i;
  ++i;
}