1 // REQUIRES: long_tests 2 3 // Check that clang is able to process short response files 4 // Since this is a short response file, clang must not use a response file 5 // to pass its parameters to other tools. This is only necessary for a large 6 // number of parameters. 7 // RUN: echo "-DTEST" >> %t.0.txt 8 // RUN: %clang -E @%t.0.txt %s -v 2>&1 | FileCheck %s -check-prefix=SHORT 9 // SHORT-NOT: Arguments passed via response file 10 // SHORT: extern int it_works; 11 12 // Check that clang is able to process long response files, routing a long 13 // sequence of arguments to other tools by using response files as well. 14 // We generate a 2MB response file to be big enough to surpass any system 15 // limit. 16 // RUN: %clang -E %S/Inputs/gen-response.c | grep DTEST > %t.1.txt 17 // RUN: %clang -E @%t.1.txt %s -v 2>&1 | FileCheck %s -check-prefix=LONG 18 // LONG: Arguments passed via response file 19 // LONG: extern int it_works; 20 21 #ifdef TEST 22 extern int it_works; 23 #endif 24