================
@@ -1,11 +1,12 @@
 // RUN: %clang_cc1 -isystem %S/Inputs/ -fsycl-is-device -triple spirv64 
-aux-triple x86_64-pc-windows-msvc -fsyntax-only -verify %s
 // RUN: %clang_cc1 -isystem %S/Inputs/ -fsycl-is-device -triple spirv64 
-fsyntax-only -verify=expected,no-aux %s
 
-// Check that there is no error/warning emitted for cdecl functions compiled 
for
-// SYCL device. Make sure variadic calls from within device code are diagnosed.
+// Check that there is no error/warning emitted for non-variadic cdecl 
functions
+// compiled for SYCL device. Make sure variadic cdecl functions and variadic
+// calls from within device code are diagnosed.
 
 // no-aux-warning@+2 {{'__cdecl' calling convention is not supported for this 
target}}
-// no-aux-error@+1 {{variadic function cannot use spir_function calling 
convention}}
+// expected-error@+1 {{variadic function cannot use cdecl calling convention}}
----------------
Fznamznon wrote:

Yeah, that is now not entirely correct from SYCL perspective, because that 
function is never called from the device code. We probably just need to defer 
the error for SYCL, probably in a separate patch.

https://github.com/llvm/llvm-project/pull/210882
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to