Test module lookup within a subdirectory of a normal include directory.

llvm-svn: 149196
This commit is contained in:
Douglas Gregor 2012-01-29 16:43:46 +00:00
parent d0c46550fe
commit dd7cae51d8
3 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,3 @@
module subdir {
header "subdir.h"
}

View File

@ -0,0 +1 @@
const char *getSubdir();

View File

@ -1,7 +1,7 @@
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fno-objc-infer-related-result-type -Werror -Wno-error=incomplete-umbrella -fmodule-cache-path %t -F %S/Inputs -verify %s
// RUN: %clang_cc1 -fmodules -fno-objc-infer-related-result-type -Werror -Wno-error=incomplete-umbrella -x objective-c++ -fmodule-cache-path %t -F %S/Inputs -verify %s
// RUN: %clang_cc1 -fmodules -fno-objc-infer-related-result-type -Werror -Wno-error=incomplete-umbrella -fmodule-cache-path %t -F %S/Inputs -verify %s
// RUN: %clang_cc1 -fmodules -fno-objc-infer-related-result-type -Werror -Wno-error=incomplete-umbrella -fmodule-cache-path %t -F %S/Inputs -I %S/Inputs -verify %s
// RUN: %clang_cc1 -fmodules -fno-objc-infer-related-result-type -Werror -Wno-error=incomplete-umbrella -x objective-c++ -fmodule-cache-path %t -F %S/Inputs -I %S/Inputs -verify %s
// RUN: %clang_cc1 -fmodules -fno-objc-infer-related-result-type -Werror -Wno-error=incomplete-umbrella -fmodule-cache-path %t -F %S/Inputs -I %S/Inputs -verify %s
#define FOO
@import Module;
@interface OtherClass
@ -22,3 +22,6 @@ void test_getModuleVersion() {
# error MODULE_SUBFRAMEWORK_H should be hidden
#endif
@import subdir;
const char *getSubdirTest() { return getSubdir(); }