Joel E. Denny | 8150810 | 2018-03-13 14:51:22 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 %s -verify -fsyntax-only |
2 | |||||
3 | class C { | ||||
4 | void f(int, int) | ||||
5 | __attribute__((ownership_returns(foo, 2))) // expected-note {{declared with index 2 here}} | ||||
6 | __attribute__((ownership_returns(foo, 3))); // expected-error {{'ownership_returns' attribute index does not match; here it is 3}} | ||||
7 | }; |