Stephen Hines | a978a07 | 2016-04-20 00:33:06 +0000 | [diff] [blame] | 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 | // |
Rui Ueyama | e38a8d2 | 2016-10-26 03:38:48 +0000 | [diff] [blame] | 6 | // RUN: printf " -x\r\nc\r\n-DTEST\r\n" > %t.0.txt |
Stephen Hines | a978a07 | 2016-04-20 00:33:06 +0000 | [diff] [blame] | 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 |