diff options
Diffstat (limited to 'gcc/testsuite/objc/execute/selector-1.m')
-rw-r--r-- | gcc/testsuite/objc/execute/selector-1.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/objc/execute/selector-1.m b/gcc/testsuite/objc/execute/selector-1.m new file mode 100644 index 00000000000..7e21da52a5e --- /dev/null +++ b/gcc/testsuite/objc/execute/selector-1.m @@ -0,0 +1,17 @@ +/* Contributed by Nicola Pero - Thu Mar 8 16:27:46 CET 2001 */ +#include <objc/objc.h> +#include <objc/objc-api.h> +#include <objc/Object.h> + +int main (void) +{ + SEL selector; + + selector = @selector (alloc); + if (strcmp (sel_get_name (selector), "alloc")) + { + abort (); + } + + return 0; +} |