summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/warn-unused-parameters.m
blob: 618dc3ff596ec7c3987209b4daaba00f64c58644 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: clang -fsyntax-only -Wunused -Xclang -verify %s

@interface foo
- (int)meth: (int)x: (int)y: (int)z ;
@end

@implementation foo
- (int) meth: (int)x: 
              (int)y: // expected-warning{{unused}} 
              (int) __attribute__((unused))z { return x; }
@end
OpenPOWER on IntegriCloud