summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-move/Inputs/helper_decls_test.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2017-01-17 13:22:37 +0000
committerHaojian Wu <hokein@google.com>2017-01-17 13:22:37 +0000
commit4775ce56ec52f9cfbc6ec1ec263d85054d69d192 (patch)
tree9274fc355284ef92fe524331473f2466292092eb /clang-tools-extra/test/clang-move/Inputs/helper_decls_test.cpp
parente29a32e9ce43d17cf65116f515fe48ccc1140dcb (diff)
downloadbcm5719-llvm-4775ce56ec52f9cfbc6ec1ec263d85054d69d192.tar.gz
bcm5719-llvm-4775ce56ec52f9cfbc6ec1ec263d85054d69d192.zip
[clang-move] Handle helpers with forward declarations.
Reviewers: ioeric Reviewed By: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28801 llvm-svn: 292215
Diffstat (limited to 'clang-tools-extra/test/clang-move/Inputs/helper_decls_test.cpp')
-rw-r--r--clang-tools-extra/test/clang-move/Inputs/helper_decls_test.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-move/Inputs/helper_decls_test.cpp b/clang-tools-extra/test/clang-move/Inputs/helper_decls_test.cpp
index c4ec8074756..32d2a234816 100644
--- a/clang-tools-extra/test/clang-move/Inputs/helper_decls_test.cpp
+++ b/clang-tools-extra/test/clang-move/Inputs/helper_decls_test.cpp
@@ -76,3 +76,22 @@ static int HelperFun5() {
void Fun1() { HelperFun5(); }
} // namespace a
+
+namespace b {
+namespace {
+void HelperFun7();
+
+class HelperC4;
+} // namespace
+
+void Fun3() {
+ HelperFun7();
+ HelperC4 *t;
+}
+
+namespace {
+void HelperFun7() {}
+
+class HelperC4 {};
+} // namespace
+} // namespace b
OpenPOWER on IntegriCloud