OSDN Git Service

In gcc/objc/:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / type-stream-1.m
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
3
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  */
8
9 #include <objc/typedstream.h>
10
11 void dummy (void)
12 {
13   TypedStream* t = objc_open_typed_stream_for_file ("dummy", 0); /* { dg-warning "deprecated" } */
14
15   objc_write_object (t, nil); /* { dg-warning "deprecated" } */
16   objc_read_object (t, NULL);  /* { dg-warning "deprecated" } */
17 }