Skip to content

Commit e508e03

Browse files
committed
Update a fixed test
1 parent 4e4ef22 commit e508e03

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/Macros/macro_attribute_expansiondecl.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ public struct LocalFuncAndVarMacro: DeclarationMacro {
6868

6969
func testGlobal() { // expected-note {{add @available attribute to enclosing global function}}
7070
globalFunc() // expected-error {{'globalFunc()' is only available in macOS 9999 or newer}} expected-note {{add 'if #available' version check}}
71-
// FIXME(109376568): Global variable introduced by macro expansion not found
72-
_ = globalVar // expected-error {{cannot find 'globalVar' in scope}}
71+
_ = globalVar // expected-error {{'globalVar' is only available in macOS 9999 or newer}} expected-note {{add 'if #available' version check}}
7372
}
7473

7574
struct S {

0 commit comments

Comments
 (0)