Merge pull request #84489 from xymus/c-identifier-only

Parser: Reject `@c` attributes using the string format
This commit is contained in:
Alexis Laferrière
2025-10-27 09:17:31 -07:00
committed by GitHub
12 changed files with 84 additions and 87 deletions

View File

@@ -28,7 +28,7 @@ package func f2() { }
internal func f3() { }
// CHECK: define hidden void @lib_publicCDeclFunc4
@c("lib_publicCDeclFunc4")
@c(lib_publicCDeclFunc4)
internal func f4() { }
// CHECK-NOT: lib_publicCDeclFunc5
@@ -36,7 +36,7 @@ internal func f4() { }
private func f5() { }
// CHECK-NOT: lib_publicCDeclFunc6
@c("lib_publicCDeclFunc6")
@c(lib_publicCDeclFunc6)
private func f6() { }
// ---------------------------------------------------------------------------