1 // RUN: %clang_cc1 -verify -std=c++11 %s
3 int f(int); // expected-note 2{{declaration missing '[[carries_dependency]]' attribute is here}}
4 [[carries_dependency
]] int f(int); // expected-error {{function declared '[[carries_dependency]]' after its first declaration}}
5 int f(int n
[[carries_dependency
]]); // expected-error {{parameter declared '[[carries_dependency]]' after its first declaration}}
7 int g([[carries_dependency
]] int n
); // expected-note {{declaration missing '[[carries_dependency]]' attribute is here}}
9 [[carries_dependency
]] int g(int); // expected-error {{function declared '[[carries_dependency]]' after its first declaration}}
10 int g(int n
[[carries_dependency
]]);
12 int h
[[carries_dependency
]]();
14 [[carries_dependency
]] int h();