Files
swift-mirror/test/BuildConfigurations/pound-if-top-level-nested.swift
Denis Vnukov 6776cb2e95 Fix for rdar://problem/19582877, Fuzzing Swift: Parser::parseTopLevel() crashes in swift::verify(...)
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
2015-01-28 17:48:36 +00:00

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}}