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