Merge from mainline (163495:164578).
[official-gcc/graphite-test-results.git] / gcc / testsuite / objc.dg / type-stream-1.m
blob9f2d509fbf787443e63017d4266983a4d46100d9
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.
7  */
9 #include <objc/typedstream.h>
11 void dummy (void)
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" } */