1 /* { dg-do compile } */
2 /* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
4 /* Test warning for deprecated typedstream functions. These functions
5 will be removed in the release after 4.6.0, at which point this
6 testcase can be removed too.
9 #include <objc/typedstream.h>
13 TypedStream* t = objc_open_typed_stream_for_file ("dummy", 0); /* { dg-warning "deprecated" } */
15 objc_write_object (t, nil); /* { dg-warning "deprecated" } */
16 objc_read_object (t, NULL); /* { dg-warning "deprecated" } */