summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/ast-dump-stmt.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-03-22 10:01:35 +0000
committerDaniel Jasper <djasper@google.com>2013-03-22 10:01:35 +0000
commit689ae01244f50f6e046af9b9808a28c5f938853b (patch)
tree227ef7cfd64c7c1c2c34d5e8acab86719e5d2520 /clang/test/Misc/ast-dump-stmt.cpp
parent55213652486fb9d90d9ccaefd73d2c5f4eceed06 (diff)
downloadbcm5719-llvm-689ae01244f50f6e046af9b9808a28c5f938853b.tar.gz
bcm5719-llvm-689ae01244f50f6e046af9b9808a28c5f938853b.zip
Fix DeclRefExpr::getFoundDecl() for usages by reference.
llvm-svn: 177721
Diffstat (limited to 'clang/test/Misc/ast-dump-stmt.cpp')
-rw-r--r--clang/test/Misc/ast-dump-stmt.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Misc/ast-dump-stmt.cpp b/clang/test/Misc/ast-dump-stmt.cpp
new file mode 100644
index 00000000000..cf3e8bf2898
--- /dev/null
+++ b/clang/test/Misc/ast-dump-stmt.cpp
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -ast-dump -ast-dump-filter Test %s | FileCheck -strict-whitespace %s
+
+namespace n {
+void function() {}
+int Variable;
+}
+using n::function;
+using n::Variable;
+void TestFunction() {
+ void (*f)() = &function;
+// CHECK: DeclRefExpr{{.*}} (UsingShadow{{.*}}function
+ Variable = 4;
+// CHECK: DeclRefExpr{{.*}} (UsingShadow{{.*}}Variable
+}
OpenPOWER on IntegriCloud