summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/debug-CallGraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Analysis/debug-CallGraph.cpp')
-rw-r--r--clang/test/Analysis/debug-CallGraph.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/test/Analysis/debug-CallGraph.cpp b/clang/test/Analysis/debug-CallGraph.cpp
index 7f9ee4dc94f..1d6844fad94 100644
--- a/clang/test/Analysis/debug-CallGraph.cpp
+++ b/clang/test/Analysis/debug-CallGraph.cpp
@@ -51,6 +51,7 @@ void test_single_call() {
do_nothing();
}
+namespace SomeNS {
template<typename T>
void templ(T t) {
ccc();
@@ -61,17 +62,17 @@ void templ<double>(double t) {
eee();
}
-
void templUser() {
templ(5);
templ(5.5);
}
+}
// CHECK:--- Call graph Dump ---
-// CHECK-NEXT: {{Function: < root > calls: get5 add test_add mmm foo aaa < > bbb ddd ccc eee fff do_nothing test_single_call templ templ templUser $}}
-// CHECK-NEXT: {{Function: templUser calls: templ templ $}}
-// CHECK-NEXT: {{Function: templ calls: eee $}}
-// CHECK-NEXT: {{Function: templ calls: ccc $}}
+// CHECK-NEXT: {{Function: < root > calls: get5 add test_add mmm foo aaa < > bbb ddd ccc eee fff do_nothing test_single_call SomeNS::templ SomeNS::templ SomeNS::templUser $}}
+// CHECK-NEXT: {{Function: SomeNS::templUser calls: SomeNS::templ SomeNS::templ $}}
+// CHECK-NEXT: {{Function: SomeNS::templ calls: eee $}}
+// CHECK-NEXT: {{Function: SomeNS::templ calls: ccc $}}
// CHECK-NEXT: {{Function: test_single_call calls: do_nothing $}}
// CHECK-NEXT: {{Function: do_nothing calls: $}}
// CHECK-NEXT: {{Function: fff calls: eee $}}
OpenPOWER on IntegriCloud