diff options
author | Lawrence Crowl <crowl@google.com> | 2013-06-20 21:15:51 +0000 |
---|---|---|
committer | Lawrence Crowl <crowl@google.com> | 2013-06-20 21:15:51 +0000 |
commit | 2cd24bd52d090bc9454c56fa19592a2a2acac58c (patch) | |
tree | ae1d9141ef1786042a0e235de101e2d519473b52 /clang/test/Modules/Inputs | |
parent | b53e5483b0490894b67a59ac4913a5229993591a (diff) | |
download | bcm5719-llvm-2cd24bd52d090bc9454c56fa19592a2a2acac58c.tar.gz bcm5719-llvm-2cd24bd52d090bc9454c56fa19592a2a2acac58c.zip |
Test files for private header patch.
llvm-svn: 184472
Diffstat (limited to 'clang/test/Modules/Inputs')
-rw-r--r-- | clang/test/Modules/Inputs/private/common.h | 6 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private/module.map | 9 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private/private1.h | 9 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private/private2.h | 9 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private/public1.h | 9 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private/public2.h | 9 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private0/common.h | 6 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private1/module.map | 4 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private1/private1.h | 9 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private1/public1.h | 9 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private2/module.map | 4 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private2/private2.h | 9 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/private2/public2.h | 9 |
13 files changed, 101 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/private/common.h b/clang/test/Modules/Inputs/private/common.h new file mode 100644 index 00000000000..17d5444b650 --- /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 00000000000..9da44354be1 --- /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 00000000000..3f41cc0181d --- /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 00000000000..3b6cddc4d90 --- /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 00000000000..3af596a98d0 --- /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 00000000000..03d0a858e10 --- /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 00000000000..17d5444b650 --- /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 00000000000..445c8010db9 --- /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 00000000000..3f41cc0181d --- /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 00000000000..3af596a98d0 --- /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 00000000000..6c5efb60209 --- /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 00000000000..3b6cddc4d90 --- /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 00000000000..03d0a858e10 --- /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 |