Manuel Klimek | 3e8479d | 2012-04-25 09:25:41 +0000 | [diff] [blame] | 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: |
NAKAMURA Takumi | 8cf93ec | 2012-05-23 22:24:27 +0000 | [diff] [blame] | 4 | // RUN: echo '[{"directory":".","command":"/random/tool -c %t/test.cpp","file":"%t/test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json |
Manuel Klimek | 3e8479d | 2012-04-25 09:25:41 +0000 | [diff] [blame] | 5 | // RUN: cp "%s" "%t/test.cpp" |
| 6 | // RUN: clang-check "%t" "%t/test.cpp" 2>&1|FileCheck %s |
| 7 | // FIXME: Make the above easier. |
| 8 | |
| 9 | #include <stddef.h> |
| 10 | |
| 11 | // CHECK: C++ requires |
| 12 | invalid; |
NAKAMURA Takumi | 1de76ba | 2012-05-16 22:14:14 +0000 | [diff] [blame] | 13 | |
NAKAMURA Takumi | 8cf93ec | 2012-05-23 22:24:27 +0000 | [diff] [blame] | 14 | // FIXME: This is incompatible to -fms-compatibility. |
NAKAMURA Takumi | 1de76ba | 2012-05-16 22:14:14 +0000 | [diff] [blame] | 15 | // XFAIL: win32 |