diff options
Diffstat (limited to 'clang/test/CodeGenOpenCL/local.cl')
-rw-r--r-- | clang/test/CodeGenOpenCL/local.cl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenOpenCL/local.cl b/clang/test/CodeGenOpenCL/local.cl new file mode 100644 index 0000000..32fa7be --- /dev/null +++ b/clang/test/CodeGenOpenCL/local.cl @@ -0,0 +1,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; +} |