]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Sema/attr-ownership.cpp
Vendor import of clang trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / Sema / attr-ownership.cpp
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
2
3 class C {
4   void f(int, int)
5       __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}}
7 };