Lines Matching refs:space

1 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DCONSTANT -cl-std=C…
2 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DGLOBAL -cl-std=CL2…
3 // RUN: %clang_cc1 %s -ffake-address-space-map -verify -pedantic -fsyntax-only -DGENERIC -cl-std=CL…
9 * an unnamed address space is added, called '__generic'. Pointers to the
10 * generic address space can be interchangabley used with pointers to any
11 * other address space except for __constant address space (Section 6.5.5).
15 * space conversions used in initialisations, assignments, casts, comparisons
58 …g '__constant int *' with an expression of type '__global int *' changes address space of pointer}}
63 …bal|constant}} int *' with an expression of type '__local int *' changes address space of pointer}}
68 …l|generic}} int *' with an expression of type '__constant int *' changes address space of pointer}}
73 …'__{{global|constant}} int *' with an expression of type 'int *' changes address space of pointer}}
78 …l|constant}} int *' with an expression of type '__generic int *' changes address space of pointer}}
83 // expected-error@-2{{casting '__global int *' to type '__constant int *' changes address space of …
88 …2{{casting '__local int *' to type '__{{global|constant}} int *' changes address space of pointer}}
93 …{casting '__constant int *' to type '__{{global|generic}} int *' changes address space of pointer}}
98 …ror-re@-2{{casting 'int *' to type '__{{global|constant}} int *' changes address space of pointer}}
103 // expected-error@-2{{casting '__generic int *' to type '__constant int *' changes address space of…
109 // expected-error@-2{{assigning '__global int *' to '__constant int *' changes address space of poi…
114 …e@-2{{assigning '__local int *' to '__{{global|constant}} int *' changes address space of pointer}}
119 …-2{{assigning '__constant int *' to '__{{global|generic}} int *' changes address space of pointer}}
124 // expected-error-re@-2{{assigning 'int *' to '__{{global|constant}} int *' changes address space o…
129 …-2{{assigning '__generic int *' to '__{{global|constant}} int *' changes address space of pointer}}
134 // expected-error@-2{{casting '__global int *' to type '__constant int *' changes address space of …
139 …2{{casting '__local int *' to type '__{{global|constant}} int *' changes address space of pointer}}
144 …{casting '__constant int *' to type '__{{global|generic}} int *' changes address space of pointer}}
149 …ror-re@-2{{casting 'int *' to type '__{{global|constant}} int *' changes address space of pointer}}
154 // expected-error@-2{{casting '__generic int *' to type '__constant int *' changes address space of…
211 …{constant|generic}} int *' to parameter of type '__global int *' changes address space of pointer}}
214 …l|constant|generic}} int *' to parameter of type '__local int *' changes address space of pointer}}
218 …{global|generic}} int *' to parameter of type '__constant int *' changes address space of pointer}}
221 …_{{global|constant|generic}} int *' to parameter of type 'int *' changes address space of pointer}}
225 …assing '__constant int *' to parameter of type '__generic int *' changes address space of pointer}}