clang-check-builtin-headers.cpp 434 B

123456789101112
  1. // RUN: rm -rf %t
  2. // RUN: mkdir %t
  3. // Add a path that doesn't exist as argv[0] for the compile command line:
  4. // RUN: echo '[{"directory":".","command":"/random/tool -c %t/test.cpp","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
  5. // RUN: cp "%s" "%t/test.cpp"
  6. // RUN: not clang-check -p "%t" "%t/test.cpp" 2>&1|FileCheck %s
  7. // FIXME: Make the above easier.
  8. #include <stddef.h>
  9. // CHECK: C++ requires
  10. invalid;