[OpenACC] Enable 'attach' clause for combined constructs
[llvm-project.git] / clang / test / ClangScanDeps / skipping-unmatched-if.c
blobfec7857d6bfde28d878635768b691a4d44cab16e
1 // Check dependency scanning when skipping an unmatched #if
3 // RUN: rm -rf %t
4 // RUN: split-file %s %t
5 // RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
7 // RUN: not clang-scan-deps -compilation-database %t/cdb.json 2>&1 | FileCheck %s
8 // CHECK: header1.h:1:2: error: unterminated conditional directive
10 //--- cdb.json.template
12 "directory" : "DIR",
13 "command" : "clang -target x86_64-apple-macosx10.7 -c DIR/test.cpp -o DIR/test.o",
14 "file" : "DIR/test.o"
17 //--- test.cpp
18 #include "header1.h"
19 #include "header2.h"
21 //--- header1.h
22 #if 0
24 //--- header2.h
25 #ifndef _HEADER2_H_
26 #define _HEADER2_H_
27 #endif