[libc++][NFC] Remove trailing whitespace from release notes
[llvm-project.git] / clang / test / CXX / dcl.dcl / dcl.attr / dcl.attr.depend / p2.cpp
blobd5b0ebf459f88b045c2d91940f62e8a189dadf33
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}}
8 int g(int);
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]]();
13 int h();
14 [[carries_dependency]] int h();