Douglas Gregor | e0762c9 | 2009-06-19 23:52:42 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -Wunused -Xclang -verify %s |
2 | |||||
3 | @interface foo | ||||
4 | - (int)meth: (int)x: (int)y: (int)z ; | ||||
5 | @end | ||||
6 | |||||
7 | @implementation foo | ||||
8 | - (int) meth: (int)x: | ||||
9 | (int)y: // expected-warning{{unused}} | ||||
10 | (int) __attribute__((unused))z { return x; } | ||||
11 | @end |