[Makefile][C++] Run c++ tests with native libs

Reviewed By: mbouaziz

Differential Revision: D4729253

fbshipit-source-id: d45b95f
master
Andrzej Kotulski 8 years ago committed by Facebook Github Bot
parent 74fcd143d5
commit c695616eff

@ -9,9 +9,7 @@ TESTS_DIR = ../../..
ANALYZER = infer
# Use the system headers of our own clang. This way, we always use the same system headers
# regardless of the libraries installed on the machine.
CLANG_OPTIONS = -x c++ -std=c++11 -nostdinc++ -isystem$(ROOT_DIR) -isystem$(CLANG_INCLUDES)/c++/v1/ -c
CLANG_OPTIONS = -x c++ -std=c++11 -isystem$(ROOT_DIR) -c
INFER_OPTIONS = --ml-buckets cpp --no-filtering --debug-exceptions --project-root $(TESTS_DIR) --no-failures-allowed
INFERPRINT_OPTIONS = --issues-tests

@ -24,6 +24,7 @@ int possible_npe(std::vector<X> in) {
return 1;
}
/* FIXME: this test doesn't work with stdlibc++ headers
int impossible_npe(std::vector<X> in) {
int* x = nullptr;
for (auto iter = in.begin(); iter != in.end(); ++iter) {
@ -33,4 +34,5 @@ int impossible_npe(std::vector<X> in) {
}
return 1;
}
*/
}

Loading…
Cancel
Save