forked from OSchip/llvm-project
Test module lookup within a subdirectory of a normal include directory.
llvm-svn: 149196
This commit is contained in:
parent
d0c46550fe
commit
dd7cae51d8
|
@ -0,0 +1,3 @@
|
|||
module subdir {
|
||||
header "subdir.h"
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
const char *getSubdir();
|
|
@ -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(); }
|
||||
|
|
Loading…
Reference in New Issue