diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/gnu-runtime-3.m')
-rw-r--r-- | gcc/testsuite/objc.dg/gnu-runtime-3.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/gnu-runtime-3.m b/gcc/testsuite/objc.dg/gnu-runtime-3.m new file mode 100644 index 000000000..e0c8cc416 --- /dev/null +++ b/gcc/testsuite/objc.dg/gnu-runtime-3.m @@ -0,0 +1,14 @@ +/* Sanity check for GNU-runtime regardless of runtime used on target system. */ + +/* { dg-do run } */ +/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */ + +#include <objc/Object.h> +#include <string.h> +#include <stdlib.h> + +int main(int argc, void **args) +{ + [Object new]; + return 0; +} |