1*f4a2713aSLionel Sambuc // Check that -Werror and -Wfatal-error interact properly.
2*f4a2713aSLionel Sambuc //
3*f4a2713aSLionel Sambuc // Verify mode doesn't work with fatal errors, just use FileCheck here.
4*f4a2713aSLionel Sambuc //
5*f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -Wunused-function -Werror -Wfatal-errors %s 2> %t.err
6*f4a2713aSLionel Sambuc // RUN: FileCheck < %t.err %s
7*f4a2713aSLionel Sambuc // CHECK: fatal error: unused function
8*f4a2713aSLionel Sambuc // CHECK: 1 error generated
9*f4a2713aSLionel Sambuc
f0(void)10*f4a2713aSLionel Sambuc static void f0(void) {} // expected-fatal {{unused function}}
11