summaryrefslogtreecommitdiffstats
path: root/clang/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp
blob: 3778c395cd1007d2068dafd8b8671f57d1968b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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 -- -stdlib=libc++ -target x86_64-apple-darwin
#include <mock_vector>
vector v;
OpenPOWER on IntegriCloud