1//RUN: %clang_cc1 %s -triple spir -cl-std=clc++ -emit-llvm -O0 -o - | FileCheck %s
2
3//CHECK-LABEL: define spir_func void @_Z3barPU3AS1i
4void bar(global int *gl) {
5  //CHECK: addrspacecast i32 addrspace(1)* %{{[0-9]+}} to i32 addrspace(4)*
6  int *gen = addrspace_cast<int *>(gl);
7}
8