Sign in
fuchsia
/
third_party
/
swift-clang
/
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2016-09-30-a
/
.
/
test
/
CodeGenOpenCL
/
constant-addr-space-globals.cl
blob: f81a51458c428a3570baf6dc4edc153b6e7462f4 [
file
] [
log
] [
blame
]
//
RUN
:
%
clang_cc1
%
s -cl-opt-disable -ffake-address-space-map -emit-llvm -o
-
|
FileCheck
%
s
//
CHECK
:
@
array
=
addrspace
(
{{[
0-9
]+}}
)
constant
__constant float array
[
2
]
=
{
0.0
f
,
1.0
f
}
;
kernel void test
(
global float
*
out
)
{
*
out
=
array
[
0
]
;
}