blob: 1a71a2679f0594b90d603ce4a539359015a011c1 [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: rm -rf %t
// RUN: mkdir -p %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: control reaches end of non-void function
// CHECK-SYSTEM-NOT: control reaches end of non-void function
import Module