summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/attr-deprecated.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/attr-deprecated.cpp')
-rw-r--r--clang/test/SemaCXX/attr-deprecated.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/attr-deprecated.cpp b/clang/test/SemaCXX/attr-deprecated.cpp
index c1bdfcca97c..54f8b5b57fc 100644
--- a/clang/test/SemaCXX/attr-deprecated.cpp
+++ b/clang/test/SemaCXX/attr-deprecated.cpp
@@ -54,3 +54,13 @@ void f(B* b, C *c) {
c->C::f();
c->B::f(); // expected-warning{{'f' is deprecated}}
}
+
+struct D {
+ virtual void f() __attribute__((deprecated));
+};
+
+void D::f() { }
+
+void f(D* d) {
+ d->f();
+}
OpenPOWER on IntegriCloud