Files
swift-mirror/test/IDE/print_source_file_interface_1.swift
Doug Gregor d762dd53f8 Stop parsing into IfConfiDecl nodes in the C++ parser
When parsing #if...#endif regions, parse the active clause directly into
place in the AST without ever producing an IfConfigDecl instance.
2024-09-18 20:51:09 -07:00

29 lines
454 B
Swift

// Copyright (c) 452 Attila the Hun. All rights reserved.
// Blah Blah.
// More blah blah.
import Swift
#if FOO
class FooEnabled {}
typealias MyN = Int
#else
class FooDisabled {}
typealias MyN = Int
#endif
public class MyClass {
func doit(x: Int) {}
#if FOO
func doFooEnabled() {}
#else
func doFooDisabled() {}
#endif
}
// RUN: %target-swift-ide-test -print-swift-file-interface -source-filename %s > %t.out
// RUN: diff -u %s.result %t.out