annotate clang/test/Frontend/warning-mapping-3.c @ 266:00f31e85ec16
default tip
Added tag current for changeset 31d058e83c98
author |
Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
date |
Sat, 14 Oct 2023 10:13:55 +0900 |
parents |
1d019706d866 |
children |
|
rev |
line source |
150
|
1 // Check that -Werror and -Wfatal-error interact properly.
|
|
2 //
|
|
3 // Verify mode doesn't work with fatal errors, just use FileCheck here.
|
|
4 //
|
|
5 // RUN: not %clang_cc1 -Wunused-function -Werror -Wfatal-errors %s 2> %t.err
|
|
6 // RUN: FileCheck < %t.err %s
|
|
7 // CHECK: fatal error: unused function
|
|
8 // CHECK: 1 error generated
|
|
9
|
|
10 static void f0(void) {} // expected-fatal {{unused function}}
|