blob: 0626efa5aaf9a2d3c8d75eb589dd91d664c4382f [file] [log] [blame]
// RUN: %clang_cc1 %s -verify -fsyntax-only
class C {
void *f(int, int)
__attribute__((ownership_returns(foo, 2))) // expected-error {{'ownership_returns' attribute index does not match; here it is 2}}
__attribute__((ownership_returns(foo, 3))); // expected-note {{declared with index 3 here}}
};