Files
swift-mirror/test/Parse/ConditionalCompilation/topLevelDeclarations.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

15 lines
258 B
Swift

// RUN: %target-typecheck-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