You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
312 B
8 lines
312 B
// 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}}
|
|
};
|