Test files for private header patch.
llvm-svn: 184472
diff --git a/clang/test/Modules/Inputs/private/common.h b/clang/test/Modules/Inputs/private/common.h
new file mode 100644
index 0000000..17d5444
--- /dev/null
+++ b/clang/test/Modules/Inputs/private/common.h
@@ -0,0 +1,6 @@
+#ifndef COMMON_H
+#define COMMON_H
+
+typedef int common;
+
+#endif
diff --git a/clang/test/Modules/Inputs/private/module.map b/clang/test/Modules/Inputs/private/module.map
new file mode 100644
index 0000000..9da4435
--- /dev/null
+++ b/clang/test/Modules/Inputs/private/module.map
@@ -0,0 +1,9 @@
+module libPrivate1 {
+ header "public1.h"
+ private header "private1.h"
+}
+
+module libPrivate2 {
+ header "public2.h"
+ private header "private2.h"
+}
diff --git a/clang/test/Modules/Inputs/private/private1.h b/clang/test/Modules/Inputs/private/private1.h
new file mode 100644
index 0000000..3f41cc0
--- /dev/null
+++ b/clang/test/Modules/Inputs/private/private1.h
@@ -0,0 +1,9 @@
+#ifndef PRIVATE1_H
+#define PRIVATE1_H
+
+#include "common.h"
+
+struct mitts_off1 { common field; };
+struct mitts_off1 hidden_variable1;
+
+#endif
diff --git a/clang/test/Modules/Inputs/private/private2.h b/clang/test/Modules/Inputs/private/private2.h
new file mode 100644
index 0000000..3b6cddc
--- /dev/null
+++ b/clang/test/Modules/Inputs/private/private2.h
@@ -0,0 +1,9 @@
+#ifndef PRIVATE2_H
+#define PRIVATE2_H
+
+#include "common.h"
+
+struct mitts_off2 { common field; };
+struct mitts_off2 hidden_variable2;
+
+#endif
diff --git a/clang/test/Modules/Inputs/private/public1.h b/clang/test/Modules/Inputs/private/public1.h
new file mode 100644
index 0000000..3af596a
--- /dev/null
+++ b/clang/test/Modules/Inputs/private/public1.h
@@ -0,0 +1,9 @@
+#ifndef PUBLIC1_H
+#define PUBLIC1_H
+
+#include "private1.h"
+
+struct use_this1 { struct mitts_off1 field; };
+struct use_this1 public_variable1;
+
+#endif
diff --git a/clang/test/Modules/Inputs/private/public2.h b/clang/test/Modules/Inputs/private/public2.h
new file mode 100644
index 0000000..03d0a85
--- /dev/null
+++ b/clang/test/Modules/Inputs/private/public2.h
@@ -0,0 +1,9 @@
+#ifndef PUBLIC2_H
+#define PUBLIC2_H
+
+#include "private2.h"
+
+struct use_this2 { struct mitts_off2 field; };
+struct use_this2 public_variable2;
+
+#endif
diff --git a/clang/test/Modules/Inputs/private0/common.h b/clang/test/Modules/Inputs/private0/common.h
new file mode 100644
index 0000000..17d5444
--- /dev/null
+++ b/clang/test/Modules/Inputs/private0/common.h
@@ -0,0 +1,6 @@
+#ifndef COMMON_H
+#define COMMON_H
+
+typedef int common;
+
+#endif
diff --git a/clang/test/Modules/Inputs/private1/module.map b/clang/test/Modules/Inputs/private1/module.map
new file mode 100644
index 0000000..445c801
--- /dev/null
+++ b/clang/test/Modules/Inputs/private1/module.map
@@ -0,0 +1,4 @@
+module libPrivate1 {
+ header "public1.h"
+ private header "private1.h"
+}
diff --git a/clang/test/Modules/Inputs/private1/private1.h b/clang/test/Modules/Inputs/private1/private1.h
new file mode 100644
index 0000000..3f41cc0
--- /dev/null
+++ b/clang/test/Modules/Inputs/private1/private1.h
@@ -0,0 +1,9 @@
+#ifndef PRIVATE1_H
+#define PRIVATE1_H
+
+#include "common.h"
+
+struct mitts_off1 { common field; };
+struct mitts_off1 hidden_variable1;
+
+#endif
diff --git a/clang/test/Modules/Inputs/private1/public1.h b/clang/test/Modules/Inputs/private1/public1.h
new file mode 100644
index 0000000..3af596a
--- /dev/null
+++ b/clang/test/Modules/Inputs/private1/public1.h
@@ -0,0 +1,9 @@
+#ifndef PUBLIC1_H
+#define PUBLIC1_H
+
+#include "private1.h"
+
+struct use_this1 { struct mitts_off1 field; };
+struct use_this1 public_variable1;
+
+#endif
diff --git a/clang/test/Modules/Inputs/private2/module.map b/clang/test/Modules/Inputs/private2/module.map
new file mode 100644
index 0000000..6c5efb6
--- /dev/null
+++ b/clang/test/Modules/Inputs/private2/module.map
@@ -0,0 +1,4 @@
+module libPrivate2 {
+ header "public2.h"
+ private header "private2.h"
+}
diff --git a/clang/test/Modules/Inputs/private2/private2.h b/clang/test/Modules/Inputs/private2/private2.h
new file mode 100644
index 0000000..3b6cddc
--- /dev/null
+++ b/clang/test/Modules/Inputs/private2/private2.h
@@ -0,0 +1,9 @@
+#ifndef PRIVATE2_H
+#define PRIVATE2_H
+
+#include "common.h"
+
+struct mitts_off2 { common field; };
+struct mitts_off2 hidden_variable2;
+
+#endif
diff --git a/clang/test/Modules/Inputs/private2/public2.h b/clang/test/Modules/Inputs/private2/public2.h
new file mode 100644
index 0000000..03d0a85
--- /dev/null
+++ b/clang/test/Modules/Inputs/private2/public2.h
@@ -0,0 +1,9 @@
+#ifndef PUBLIC2_H
+#define PUBLIC2_H
+
+#include "private2.h"
+
+struct use_this2 { struct mitts_off2 field; };
+struct use_this2 public_variable2;
+
+#endif