1// RUN: %clang_cc1 %s -triple spir-unknown-unknown -cl-std=clc++ -emit-llvm -O0 -o - | FileCheck %s
2
3void bar(__generic volatile unsigned int* ptr)
4{
5 //CHECK: addrspacecast i32 addrspace(4)* %{{.+}} to i32 addrspace(1)*
6 auto gptr = (__global volatile unsigned int*)ptr;
7}
8