// Check dependency scanning when skipping an unmatched #if
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
// RUN: not clang-scan-deps -compilation-database %t/cdb.json 2>&1 | FileCheck %s
// CHECK: header1.h:1:2: error: unterminated conditional directive
//--- cdb.json.template
//--- test.cpp
//--- header1.h
//--- header2.h
_HEADER2_H_
#define _HEADER2_H_