Files
swift-mirror/test/SIL/printer_include_decls_module.swift
Bartosz Polaczyk e388b185f2 [SIL] Always print types in SIL
SIL prints types and declarations defined in a current file
(-primary-file flag) or a module (whole module mode).
2018-02-13 20:30:03 +01:00

15 lines
646 B
Swift

// RUN: rm -f %t.*
// RUN: %target-swift-frontend -emit-sil %s %S/Inputs/printer_include_decls_module_helper.swift -o %t.sil -module-name main
// RUN: %FileCheck --input-file=%t.sil %s
// RUN: %FileCheck --input-file=%t.sil %S/Inputs/printer_include_decls_module_helper.swift
// RUN: %target-swift-frontend -emit-sil -primary-file %s %S/Inputs/printer_include_decls_module_helper.swift -o %t.sil -module-name main
// RUN: %FileCheck --input-file=%t.sil %s
// RUN: %FileCheck --input-file=%t.sil %S/Inputs/printer_include_decls_module_helper.swift -check-prefix=CHECK-NEGATIVE
class Foo {
// CHECK: class Foo
// CHECK-NEGATIVE-NOT: class Foo
}