1 // { dg-do compile { target c++14 } }
14 class [[deprecated("B has been superceded by C")]] B
18 [[deprecated("bar is unsafe; use foobar instead")]]
25 #if __cplusplus > 201103L
27 // Deprecate C for C++14 onwards.
28 class [[deprecated]] C;
30 // Deprecate foobar for C++14 onwards.
50 A aaa; // { dg-warning "is deprecated" }
51 int n = foo(12); // { dg-warning "is deprecated" }
53 B bbb; // { dg-warning "is deprecated" "B has been superceded by C" }
54 int m = bar(666); // { dg-warning "is deprecated" "bar is unsafe; use foobar instead" }
56 C ccc; // { dg-warning "is deprecated" }
57 int l = foobar(8); // { dg-warning "is deprecated" }