annotate clang/test/Misc/diag-mapping2.c @ 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 c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // This should warn by default.
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 %s 2>&1 | grep "warning: foo"
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // This should not emit anything.
anatofuz
parents:
diff changeset
5 // RUN: %clang_cc1 %s -w 2>&1 | not grep diagnostic
anatofuz
parents:
diff changeset
6 // RUN: %clang_cc1 %s -Wno-#warnings 2>&1 | not grep diagnostic
anatofuz
parents:
diff changeset
7 // RUN: %clang_cc1 %s -Wno-cpp 2>&1 | not grep diagnostic
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // -Werror can map all warnings to error.
anatofuz
parents:
diff changeset
10 // RUN: not %clang_cc1 %s -Werror 2>&1 | grep "error: foo"
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 // -Werror can map this one warning to error.
anatofuz
parents:
diff changeset
13 // RUN: not %clang_cc1 %s -Werror=#warnings 2>&1 | grep "error: foo"
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // -Wno-error= overrides -Werror. rdar://3158301
anatofuz
parents:
diff changeset
16 // RUN: %clang_cc1 %s -Werror -Wno-error=#warnings 2>&1 | grep "warning: foo"
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 // -Wno-error overrides -Werror. PR4715
anatofuz
parents:
diff changeset
19 // RUN: %clang_cc1 %s -Werror -Wno-error 2>&1 | grep "warning: foo"
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 #warning foo
anatofuz
parents:
diff changeset
22