PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / deprecated-10.C
blob55cdf3dd7f60a50489b7636cc252ffc1b34eb291
1 // PR c++/65687
3 typedef struct old_visible_stuff *opaquePointer;
5 struct old_visible_stuff {
6   int things_we_no_longer;
7   int wish_to_expose;
8 } __attribute__((__deprecated__("do not refer to this, the layout might change")));
10 typedef struct old_visible_stuff *another; // { dg-warning "deprecated" }
12 opaquePointer runtime_function (opaquePointer someObject);
14 opaquePointer bad_runtime_call (struct old_visible_stuff *otherObject); // { dg-warning "deprecated" }