• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -verify -std=c++11 %s
2 
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}}
6 
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]]);
11 
12 int h [[carries_dependency]]();
13 int h();
14 [[carries_dependency]] int h();
15