blob: b4d7c6f750602ef77603bf3b61479e63a165de91 [file] [log] [blame]
// The clang module triggers a warning, make sure that -Fsystem has the effect of importing as system, which will suppress the warning.
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -F %S/Inputs/systemframeworks -module-cache-path %t/mcp1 %s 2> %t/stderr-as-user.txt
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -Fsystem %S/Inputs/systemframeworks -module-cache-path %t/mcp2 %s 2> %t/stderr-as-system.txt
// RUN: %FileCheck -input-file=%t/stderr-as-user.txt %s -check-prefix=CHECK-USER
// RUN: %FileCheck -input-file=%t/stderr-as-system.txt %s -check-prefix=CHECK-SYSTEM --allow-empty
// CHECK-USER: non-void function does not return a value
// CHECK-SYSTEM-NOT: non-void function does not return a value
import Module