annotate clang/test/Misc/error-limit-multiple-notes.cpp @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: not %clang_cc1 -ferror-limit 1 -fsyntax-only %s 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // error and three notes emitted
anatofuz
parents:
diff changeset
4 void foo(int);
anatofuz
parents:
diff changeset
5 void foo(double);
anatofuz
parents:
diff changeset
6 void foo(int, int);
anatofuz
parents:
diff changeset
7 void foo(int, int, int, int);
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 int main()
anatofuz
parents:
diff changeset
10 {
anatofuz
parents:
diff changeset
11 foo(1, 2, 3);
anatofuz
parents:
diff changeset
12 }
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 // error and note suppressed by error-limit
anatofuz
parents:
diff changeset
15 struct s1{};
anatofuz
parents:
diff changeset
16 struct s1{};
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 // CHECK: 11:5: error: no matching function for call to 'foo'
anatofuz
parents:
diff changeset
19 // CHECK: 6:6: note: candidate function not viable: requires 2 arguments, but 3 were provided
anatofuz
parents:
diff changeset
20 // CHECK: 7:6: note: candidate function not viable: requires 4 arguments, but 3 were provided
anatofuz
parents:
diff changeset
21 // CHECK: 5:6: note: candidate function not viable: requires 1 argument, but 3 were provided
anatofuz
parents:
diff changeset
22 // CHECK: 4:6: note: candidate function not viable: requires 1 argument, but 3 were provided
anatofuz
parents:
diff changeset
23 // CHECK: fatal error: too many errors emitted, stopping now
anatofuz
parents:
diff changeset
24 // CHECK-NOT: 16:8: error: redefinition of 's1'
anatofuz
parents:
diff changeset
25 // CHECK-NOT: 15:8: note: previous definition is here