Author: vvassilev Date: Fri Jul 22 15:49:31 2016 New Revision: 276469 URL: http://llvm.org/viewvc/llvm-project?rev=276469&view=rev Log: Add regression test for PR27699.
Added: cfe/trunk/test/Modules/Inputs/PR27699/ cfe/trunk/test/Modules/Inputs/PR27699/Subdir/ cfe/trunk/test/Modules/Inputs/PR27699/Subdir/a.h cfe/trunk/test/Modules/Inputs/PR27699/Subdir/b.h cfe/trunk/test/Modules/Inputs/PR27699/module.modulemap cfe/trunk/test/Modules/Inputs/PR27699/streambuf cfe/trunk/test/Modules/pr27699.cpp Added: cfe/trunk/test/Modules/Inputs/PR27699/Subdir/a.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/PR27699/Subdir/a.h?rev=276469&view=auto ============================================================================== --- cfe/trunk/test/Modules/Inputs/PR27699/Subdir/a.h (added) +++ cfe/trunk/test/Modules/Inputs/PR27699/Subdir/a.h Fri Jul 22 15:49:31 2016 @@ -0,0 +1 @@ +#include "streambuf" Added: cfe/trunk/test/Modules/Inputs/PR27699/Subdir/b.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/PR27699/Subdir/b.h?rev=276469&view=auto ============================================================================== --- cfe/trunk/test/Modules/Inputs/PR27699/Subdir/b.h (added) +++ cfe/trunk/test/Modules/Inputs/PR27699/Subdir/b.h Fri Jul 22 15:49:31 2016 @@ -0,0 +1 @@ +#include "streambuf" Added: cfe/trunk/test/Modules/Inputs/PR27699/module.modulemap URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/PR27699/module.modulemap?rev=276469&view=auto ============================================================================== --- cfe/trunk/test/Modules/Inputs/PR27699/module.modulemap (added) +++ cfe/trunk/test/Modules/Inputs/PR27699/module.modulemap Fri Jul 22 15:49:31 2016 @@ -0,0 +1 @@ +module a { umbrella "Subdir" module * {export *} } Added: cfe/trunk/test/Modules/Inputs/PR27699/streambuf URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/PR27699/streambuf?rev=276469&view=auto ============================================================================== --- cfe/trunk/test/Modules/Inputs/PR27699/streambuf (added) +++ cfe/trunk/test/Modules/Inputs/PR27699/streambuf Fri Jul 22 15:49:31 2016 @@ -0,0 +1,7 @@ + #ifndef STREAMBUF + #define STREAMBUF + template <typename> struct basic_streambuf { + basic_streambuf(const basic_streambuf &); + }; +template <typename T> basic_streambuf<T>::basic_streambuf(const basic_streambuf &) = default; +#endif Added: cfe/trunk/test/Modules/pr27699.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/pr27699.cpp?rev=276469&view=auto ============================================================================== --- cfe/trunk/test/Modules/pr27699.cpp (added) +++ cfe/trunk/test/Modules/pr27699.cpp Fri Jul 22 15:49:31 2016 @@ -0,0 +1,9 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR27699 -verify %s +// RUN: %clang_cc1 -std=c++11 -fmodules -fmodule-map-file=%S/Inputs/PR27699/module.modulemap -fmodules-cache-path=%t -fmodules-local-submodule-visibility -I%S/Inputs/PR27699 -verify %s + +#include "Subdir/a.h" +#include "Subdir/b.h" + +// expected-no-diagnostics + _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits