mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 17:43:57 +00:00
0a29028072
Was reverted in r363379 due to build breakage. Thanks to Nico Weber for reverting the original and suggesting the fix. Please see https://reviews.llvm.org/D61697 llvm-svn: 363502
23 lines
764 B
C++
23 lines
764 B
C++
// Clang on MacOS can find libc++ living beside the installed compiler.
|
|
// This test makes sure our libTooling-based tools emulate this properly with
|
|
// fixed compilation database.
|
|
//
|
|
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
//
|
|
// Install the mock libc++ (simulates the libc++ directory structure).
|
|
// RUN: cp -r %S/Inputs/mock-libcxx %t/
|
|
//
|
|
// RUN: cp clang-check %t/mock-libcxx/bin/
|
|
// RUN: cp %s %t/test.cpp
|
|
// RUN: "%t/mock-libcxx/bin/clang-check" -p %t %t/test.cpp -- \
|
|
// RUN: -stdlib=libc++ -target x86_64-apple-darwin \
|
|
// RUN: -ccc-install-dir %t/mock-libcxx/bin
|
|
//
|
|
// ^ -ccc-install-dir passed to unbreak tests on *BSD where
|
|
// getMainExecutable() relies on real argv[0] being passed
|
|
//
|
|
// UNSUPPORTED: enable_shared
|
|
#include <mock_vector>
|
|
vector v;
|