diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/encode-7.m')
-rw-r--r-- | gcc/testsuite/objc.dg/encode-7.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/encode-7.m b/gcc/testsuite/objc.dg/encode-7.m new file mode 100644 index 000000000..1fe0b2424 --- /dev/null +++ b/gcc/testsuite/objc.dg/encode-7.m @@ -0,0 +1,18 @@ +/* { 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; +} |