1 | // Check that clang is able to process response files with extra whitespace. |
---|---|
2 | // We generate a dos-style file with \r\n for line endings, and then split |
3 | // some joined arguments (like "-x c") across lines to ensure that regular |
4 | // clang (not clang-cl) can process it correctly. |
5 | // |
6 | // RUN: printf " -x\r\nc\r\n-DTEST\r\n" > %t.0.txt |
7 | // RUN: %clang -E @%t.0.txt %s -v 2>&1 | FileCheck %s -check-prefix=SHORT |
8 | // SHORT: extern int it_works; |
9 | |
10 | #ifdef TEST |
11 | extern int it_works; |
12 | #endif |
13 |