summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/warn-func-not-needed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/warn-func-not-needed.cpp')
-rw-r--r--test/SemaCXX/warn-func-not-needed.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaCXX/warn-func-not-needed.cpp b/test/SemaCXX/warn-func-not-needed.cpp
index d51c173..65721f4 100644
--- a/test/SemaCXX/warn-func-not-needed.cpp
+++ b/test/SemaCXX/warn-func-not-needed.cpp
@@ -42,3 +42,12 @@ namespace test4 {
g<int>();
}
}
+
+namespace test4 {
+ static void func();
+ void bar() {
+ void func();
+ func();
+ }
+ static void func() {}
+}
OpenPOWER on IntegriCloud