File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ template <typename Arg0, typename... Args>
163
163
void printArgs (Arg0 arg0, Args... args) {
164
164
std::cout << " " ;
165
165
print (arg0);
166
- printArgs (std::forward<Args>(args)...);
166
+ pi:: printArgs (std::forward<Args>(args)...);
167
167
}
168
168
} // namespace pi
169
169
Original file line number Diff line number Diff line change
1
+ // RUN: %clangxx -fsycl %s -c
2
+
3
+ // Regression tests for https://github.com/intel/llvm/issues/1011
4
+ // Checks that SYCL headers call internal templated function 'printArgs'
5
+ // with fully quilified name to not confuse ADL.
6
+ //
7
+
8
+ template <typename TArg0, typename ... TArgs>
9
+ auto printArgs (TArg0 arg, TArgs... args) {
10
+ }
11
+
12
+ #include < CL/sycl.hpp>
13
+
14
+ int main () {
15
+ return 0 ;
16
+ }
You can’t perform that action at this time.
0 commit comments