Files
swift-mirror/test/BuildConfigurations/topLevelDeclarations.swift
Joe Pamer b46d20240d Update build configuration tests to be independent of their runtime platform.
Also, add more tests for the "os" and "arch" target configurations, to exercise likely
build configurations for iOS and the iOS simulator.

Swift SVN r14307
2014-02-24 18:16:50 +00:00

15 lines
252 B
Swift

// RUN: %swift -parse %s -verify -D FOO
// This test is meant to ensure that mixes of top-level declarations, statements
// and expressions within #if blocks parse correctly
var x = 0
#if FOO
class C{}
x = x+1
#endif
#if FOO
x = x+1
class D{}
#endif