[clang] [HLSL] Treat `main` as any other function (PR #110546)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 30 12:36:40 PDT 2024
================
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
// RUN: spirv-pc-vulkan-library %s -emit-llvm -disable-llvm-passes -o - | FileCheck %s
-// CHECK: define spir_func void @main() [[A0:#[0-9]+]] {
+// CHECK: define spir_func void @{{.*}}main{{.*}}() [[A0:#[0-9]+]] {
----------------
farzonl wrote:
```suggestion
// CHECK: define spir_func void @{{.*main.*}}() [[A0:#[0-9]+]] {
```
https://github.com/llvm/llvm-project/pull/110546
More information about the cfe-commits
mailing list