Files
swift-mirror/test/IDE/print_source_file_interface_1.swift
2015-08-02 21:58:47 +00:00

31 lines
468 B
Swift

// Copyright (c) 452 Attila the Hun. All rights reserved.
// Blah Blah.
// More blah blah.
#if FOO
import Swift
class FooEnabled {}
typealias MyN = Int
#else
import Swift
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