forked from OSchip/llvm-project
parent
42a4c9f9e0
commit
df540cbf92
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clang_cc1 %s -ffake-address-space-map -faddress-space-map-mangling=no -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
|
||||
|
||||
__kernel void foo(void) {
|
||||
// CHECK: @foo.i = internal addrspace(2)
|
||||
// CHECK: @foo.i = internal unnamed_addr addrspace(2)
|
||||
__local int i;
|
||||
++i;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
__constant char * __constant x = "hello world";
|
||||
__constant char * __constant y = "hello world";
|
||||
|
||||
// CHECK: addrspace(3) unnamed_addr constant
|
||||
// CHECK: unnamed_addr addrspace(3) constant
|
||||
// CHECK-NOT: addrspace(3) unnamed_addr constant
|
||||
// CHECK: @x = addrspace(3) global i8 addrspace(3)*
|
||||
// CHECK: @y = addrspace(3) global i8 addrspace(3)*
|
||||
|
|
Loading…
Reference in New Issue