Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions clang/test/SemaSYCL/address-space-parameter-conversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,13 @@ void tmpl(T *t){}

void usages() {
__attribute__((opencl_global)) int *GLOB;
__attribute__((opencl_global_device)) int *GLOBDEV;
__attribute__((opencl_global_host)) int *GLOBHOST;
__attribute__((opencl_private)) int *PRIV;
__attribute__((opencl_local)) int *LOC;
int *NoAS;

bar(*GLOB);
bar2(*GLOB);

bar(*GLOBDEV);
bar2(*GLOBDEV);
bar3(*GLOBDEV);

bar(*GLOBHOST);
bar2(*GLOBHOST);
bar3(*GLOBHOST);

bar(*PRIV);
bar2(*PRIV);
Expand All @@ -42,12 +33,6 @@ void usages() {

foo(GLOB);
foo2(GLOB);
foo(GLOBDEV);
foo2(GLOBDEV);
foo3(GLOBDEV);
foo(GLOBDEV);
foo2(GLOBHOST);
foo3(GLOBHOST);
foo(PRIV);
foo2(PRIV);
foo(NoAS);
Expand All @@ -56,18 +41,12 @@ void usages() {
foo2(LOC);

tmpl(GLOB);
tmpl(GLOBDEV);
tmpl(GLOBHOST);
tmpl(PRIV);
tmpl(NoAS);
tmpl(LOC);

(void)static_cast<int*>(GLOB);
(void)static_cast<void*>(GLOB);
(void)static_cast<int *>(GLOBDEV);
(void)static_cast<void *>(GLOBDEV);
(void)static_cast<int *>(GLOBHOST);
(void)static_cast<void *>(GLOBHOST);
// FIXME: determine if we can warn on the below conversions.
int *i = GLOB;
void *v = GLOB;
Expand Down