Home | History | Annotate | Download | only in CodeGenOpenCL
      1 // RUN: %clang_cc1 %s -ffake-address-space-map -emit-llvm -o - | FileCheck %s
      2 
      3 __kernel void foo(void) {
      4   // CHECK: @foo.i = internal addrspace(2)
      5   __local int i;
      6   ++i;
      7 }
      8 
      9 // CHECK: define void @_Z3barPU3AS2i
     10 __kernel void __attribute__((__overloadable__)) bar(local int *x) {
     11   *x = 5;
     12 }
     13