brintos

brintos / llvm-project-archived public Read only

0
0
Text · 764 B · 26a6a8a Raw
23 lines · cpp
1// Clang on MacOS can find libc++ living beside the installed compiler.2// This test makes sure our libTooling-based tools emulate this properly with3// fixed compilation database.4//5// RUN: rm -rf %t6// RUN: mkdir %t7//8// Install the mock libc++ (simulates the libc++ directory structure).9// RUN: cp -r %S/Inputs/mock-libcxx %t/10//11// RUN: cp clang-check %t/mock-libcxx/bin/12// RUN: cp %s %t/test.cpp13// RUN: "%t/mock-libcxx/bin/clang-check" -p %t %t/test.cpp -- \14// RUN:     -stdlib=libc++ -target x86_64-apple-darwin \15// RUN:     -ccc-install-dir %t/mock-libcxx/bin16//17// ^ -ccc-install-dir passed to unbreak tests on *BSD where18//   getMainExecutable() relies on real argv[0] being passed19//20// UNSUPPORTED: enable_shared21#include <mock_vector>22vector v;23