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

OpenPOWER on IntegriCloud