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