// 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

// 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: control reaches end of non-void function
// CHECK-SYSTEM-NOT: control reaches end of non-void function
import Module

--- 
+++ 
@@ -7,6 +7,6 @@
 // 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
+// CHECK-USER: non-void function does not return a value
+// CHECK-SYSTEM-NOT: non-void function does not return a value
 import Module
[Test] Update test for new Clang diagnostic wording

Fixes rdar://problem/58495750
