aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/warn-missing-prototypes.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-03-22 07:16:37 +0000
committerJohn McCall <rjmccall@apple.com>2011-03-22 07:16:37 +0000
commit850d3b304b69b40c0292d433743aba82f3add4a8 (patch)
tree6b9afa655f42ddc2062b5948597d4a5affdd48d9 /test/SemaCXX/warn-missing-prototypes.cpp
parente81ac69c5da9fadfac33ee76e98d5fb558c4e389 (diff)
Apply Jonathan Sauer's proposed solution to PR9519. Thanks!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/warn-missing-prototypes.cpp')
-rw-r--r--test/SemaCXX/warn-missing-prototypes.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/warn-missing-prototypes.cpp b/test/SemaCXX/warn-missing-prototypes.cpp
index b6ebe820f3..f7e8db38a4 100644
--- a/test/SemaCXX/warn-missing-prototypes.cpp
+++ b/test/SemaCXX/warn-missing-prototypes.cpp
@@ -24,3 +24,9 @@ template<typename> void h() { }
// Don't warn when instantiating function templates.
template void h<int>();
+
+// PR9519: don't warn about friend functions.
+class I {
+ friend void I_friend() {}
+};
+