Debian Codegraph @

gcc/testsuite/g++.dg/warn/deprecated-10.C

raw
1 // PR c++/65687
2
3 typedef struct old_visible_stuff *opaquePointer;
4
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")));
9
10 typedef struct old_visible_stuff *another; // { dg-warning "deprecated" }
11
12 opaquePointer runtime_function (opaquePointer someObject);
13
14 opaquePointer bad_runtime_call (struct old_visible_stuff *otherObject); // { dg-warning "deprecated" }