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