mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #84489 from xymus/c-identifier-only
Parser: Reject `@c` attributes using the string format
This commit is contained in:
@@ -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() { }
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user