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

#ifdef TEST
extern int it_works;
#endif