[modules] Use the "redundant #include" diagnostic rather than the "module
import can't appear here" diagnostic if an already-visible module is textually
entered (because we have the module map but not the AST file) within a
function/namespace scope.
llvm-svn: 288737
diff --git a/clang/test/Modules/Inputs/cxx-header.h b/clang/test/Modules/Inputs/cxx-header.h
index 7ed7775..ee52c63 100644
--- a/clang/test/Modules/Inputs/cxx-header.h
+++ b/clang/test/Modules/Inputs/cxx-header.h
@@ -1 +1,4 @@
-int f();
+#ifndef CXX_HEADER_H
+#define CXX_HEADER_H
+inline int f() { return 0; }
+#endif