Files
swift-mirror/test/Parse/ConditionalCompilation/pound-if-top-level-3.swift
Rintaro Ishizaki 39746a9e58 [Parse] Inline skipExtraTopLevelRBraces()
Removed from 'parseTopLevel()'. There's no particular reason to diagnose
it in 'parseTopLevel()'.
2017-12-25 23:32:55 +09:00

8 lines
272 B
Swift

// RUN: %target-typecheck-verify-swift
#if arch(x86_64)
// expected-error@+2{{expected '{' in protocol type}}
// expected-error@+1{{extraneous '}' at top level}}
public protocol CS}
// expected-error@+1{{expected #else or #endif at end of conditional compilation block}}