Files
swift-mirror/test/Parse/ConditionalCompilation/topLevelDeclarations.swift
Jordan Rose 7954be4d87 [test] Move BuildConfigurations/ to Parse/ConditionalCompilation/.
Also move a Parse test that's really about conditional compilation
directives into the new folder.
2016-02-12 11:10:32 -08:00

15 lines
254 B
Swift

// RUN: %target-parse-verify-swift -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