mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Brace statement created for wrapping IfConfig inside TopLevelCodeDecl does not have closing brace, so we should use the previous token’s location as right brace location. Swift SVN r24797
8 lines
232 B
Swift
8 lines
232 B
Swift
// RUN: %target-parse-verify-swift
|
|
|
|
#if _runtime(_ObjC)
|
|
#if arch(x86_64)
|
|
|
|
// expected-error@+2{{expected #else or #endif at end of configuration block}}
|
|
// expected-error@+1{{expected #else or #endif at end of configuration block}}
|