File: exitcode_good_error.c

package info (click to toggle)
iwyu 8.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,336 kB
  • sloc: cpp: 17,440; python: 6,416; ansic: 1,307; sh: 55; makefile: 29
file content (19 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//===--- exitcode_good_error.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: -Xiwyu --error

// When --error is provided, IWYU exits with error only if analysis finds IWYU
// violations. In this case there are none, so IWYU exits with 0.

/**** IWYU_SUMMARY(0)

(tests/driver/exitcode_good_error.c has correct #includes/fwd-decls)

***** IWYU_SUMMARY */