[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 14 08:56:03 PDT 2025


================
@@ -0,0 +1,70 @@
+// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsycl-is-device -std=c++20 -fsyntax-only -verify -DCPP20 %s
----------------
schittir wrote:

I am assuming that you also intended to have the code guarded with CPP17 in the body. 

https://github.com/llvm/llvm-project/pull/140282


More information about the cfe-commits mailing list