brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1023 B · 4958674 Raw
28 lines · cpp
1// UNSUPPORTED:  target={{.*}}-aix{{.*}}2 3// RUN: rm -rf %t.dir4// RUN: rm -rf %t.cdb5// RUN: mkdir -p %t.dir6// RUN: mkdir %t.dir/Inputs7// RUN: cp %s %t.dir/Inputs/relative_directory_input1.cpp8// RUN: cp %s %t.dir/Inputs/relative_directory_input2.cpp9// RUN: touch %t.dir/Inputs/header.h10// RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/relative_directory.json > %t.cdb11//12// RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck --check-prefixes=CHECK1,CHECK2 %s13 14// The output order is non-deterministic when using more than one thread,15// so check the output using two runs.16// RUN: clang-scan-deps -compilation-database %t.cdb -j 2 | FileCheck --check-prefix=CHECK1 %s17// RUN: clang-scan-deps -compilation-database %t.cdb -j 2 | FileCheck --check-prefix=CHECK2 %s18 19#include <header.h>20 21// CHECK1: relative_directory_input1.o:22// CHECK1-NEXT: relative_directory_input1.cpp23// CHECK1-NEXT: header.h24 25// CHECK2: relative_directory_input2.o:26// CHECK2-NEXT: relative_directory_input2.cpp27// CHECK2-NEXT: header.h28