Files
swift-mirror/test/IDE/print_ast_overlay.swift
Dmitri Hrybenko 11ccb38e06 AST printer: use getDisplayDecls() to find a list of decls to print.
We are still not completely correct in determining which extensions to print,
will fix in future patches.


Swift SVN r10960
2013-12-07 00:54:05 +00:00

17 lines
659 B
Swift

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %swift -emit-module -module-name FooClangModule -o %t -I %S/Inputs/custom-modules -module-cache-path=%t/clang-module-cache %s
// RUN: %swift-ide-test -print-module -source-filename %s -I %t -I %S/Inputs/custom-modules -module-cache-path=%t/clang-module-cache -module-to-print=FooClangModule > %t.printed.txt
// RUN: FileCheck %s -check-prefix=PASS_COMMON -strict-whitespace < %t.printed.txt
import FooClangModule
func overlay_func() {}
// Check that given a module with an overlay, AST printer prints declarations
// from both of them.
// PASS_COMMON: @objc class FooClass {
// PASS_COMMON: func overlay_func()