aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/unused.m
blob: cbe15a1abb57f608c5bbec7d76bcbe451fb71448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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;
}