rt_gccstream/gcc/testsuite/objc.dg/encode-7.m

19 lines
267 B
Objective-C

/* { dg-do run } */
/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
#include <objc/encoding.h>
#include <stdlib.h>
struct f
{
_Bool a;
};
int main(void)
{
if (objc_sizeof_type (@encode (struct f)) != sizeof(struct f))
abort ();
return 0;
}