[modules] PR20786: add (already passing) regression test from the bug report.

llvm-svn: 216683
This commit is contained in:
Richard Smith 2014-08-28 20:14:15 +00:00
parent b43d51de95
commit 13ad07aca3
6 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#include "random.h"
#include "TFormula.h"

View File

@ -0,0 +1 @@
#include "TMath.h"

View File

@ -0,0 +1 @@
#include "random.h"

View File

@ -0,0 +1,3 @@
module TMath { header "TMath.h" }
module TFormula { header "TFormula.h" }
module TBranchProxy { header "TBranchProxy.h" }

View File

@ -0,0 +1,12 @@
namespace std {
template<typename> struct mersenne_twister_engine {
friend bool operator==(const mersenne_twister_engine &,
const mersenne_twister_engine &) {
return false;
}
};
struct random_device {
mersenne_twister_engine<int> mt; // require complete type
};
}

View File

@ -0,0 +1,2 @@
// RUN: rm -rf %T
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%T -fmodule-name=TBranchProxy -emit-module -x c++ %S/Inputs/PR20786/module.modulemap