Ted Kremenek | 48108fd | 2010-02-21 05:15:32 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wunused-value -verify %s |
2 | |||||
3 | @interface INTF | ||||
4 | // Currently this is rejected by both GCC and Clang (and Clang was crashing on it). | ||||
5 | - (id) foo __attribute__((warn_unused_result)); // expected-warning{{warning: 'warn_unused_result' attribute only applies to function types}} | ||||
6 | @end | ||||
7 | |||||
8 |