summaryrefslogtreecommitdiffstats
path: root/tests/driver/exitcode_warn_error_always_arg.c
blob: 4a2c590cb2b4fd16ac26409271530dc4dd1c62f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//===--- exitcode_warn_error_always_arg.c - test input file for iwyu ------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// IWYU_ARGS: -I . -Xiwyu --error_always=11

// When --error_always is provided, IWYU exits with error whether or not there
// are IWYU violations. See exitcode_good_error_always_arg.c for complementary
// testcase where there are no violations.

#include "tests/driver/direct.h"

// IWYU: Indirect is...*indirect.h
struct Indirect x;

/**** IWYU_SUMMARY(11)

tests/driver/exitcode_warn_error_always_arg.c should add these lines:
#include "tests/driver/indirect.h"

tests/driver/exitcode_warn_error_always_arg.c should remove these lines:
- #include "tests/driver/direct.h"  // lines XX-XX

The full include-list for tests/driver/exitcode_warn_error_always_arg.c:
#include "tests/driver/indirect.h"  // for Indirect

***** IWYU_SUMMARY */