blob: d9dcf996ecb2a11e1ddfdb6637cf1df6be61186b (
plain)
1
2
3
4
5
6
7
8
|
// RUN: %clang_cc1 -fsyntax-only -Wunused-value -verify %s
@interface INTF
// Currently this is rejected by both GCC and Clang (and Clang was crashing on it).
- (id) foo __attribute__((warn_unused_result)); // expected-warning{{warning: 'warn_unused_result' attribute only applies to function types}}
@end
|