summaryrefslogtreecommitdiffstats
path: root/test/Misc/ast-dump-stmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Misc/ast-dump-stmt.cpp')
-rw-r--r--test/Misc/ast-dump-stmt.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Misc/ast-dump-stmt.cpp b/test/Misc/ast-dump-stmt.cpp
new file mode 100644
index 0000000..cf3e8bf
--- /dev/null
+++ b/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