llvm-project/clang/test/SemaObjC/unused.m

19 lines
245 B
Objective-C

// RUN: clang %s -verify -fsyntax-only
#include <stdio.h>
@interface Greeter
+ (void) hello;
@end
@implementation Greeter
+ (void) hello {
fprintf(stdout, "Hello, World!\n");
}
@end
int main (void) {
[Greeter hello];
return 0;
}