blob: 347df195cb00d398ddbf83b90d311f64735f7d02 [file] [log] [blame]
// RUN: %clang_cc1 -no-opaque-pointers %s -triple spir-unknown-unknown -emit-llvm -O0 -o - | FileCheck %s
void bar(__generic volatile unsigned int* ptr)
{
//CHECK: addrspacecast i32 addrspace(4)* %{{.+}} to i32 addrspace(1)*
auto gptr = (__global volatile unsigned int*)ptr;
}