[clang] [SYCL] Error on C inputs when compiling with -fsycl (PR #200318)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 8 05:42:50 PDT 2026


================
@@ -1,4 +1,4 @@
-// RUN:  %clang_cc1 -fsycl-is-device -triple spir64 -emit-llvm %s -o - | FileCheck %s
+// RUN:  %clang_cc1 -fsycl-is-device -triple spir64 -x c++ -emit-llvm %s -o - | FileCheck %s
----------------
AaronBallman wrote:

Maybe rename the file to have a .cpp extension instead?

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


More information about the cfe-commits mailing list