blob: 7381285e2da488767f09a7514c70f02e6ca4333d [file] [log] [blame]
Joel E. Denny81508102018-03-13 14:51:22 +00001// RUN: %clang_cc1 %s -verify -fsyntax-only
2
3class C {
4 void f(int, int)
Michael Krusedc5ce722018-08-03 01:21:16 +00005 __attribute__((ownership_returns(foo, 2))) // expected-error {{'ownership_returns' attribute index does not match; here it is 2}}
6 __attribute__((ownership_returns(foo, 3))); // expected-note {{declared with index 3 here}}
Joel E. Denny81508102018-03-13 14:51:22 +00007};