Index: test/Preprocessor/bigoutput.py =================================================================== --- test/Preprocessor/bigoutput.py +++ test/Preprocessor/bigoutput.py @@ -0,0 +1,11 @@ +# RUN: python %s +# RUN: %clang_cc1 -E -x c bigoutput.c | FileCheck %s + +# Make sure clang does not crash during preprocessing +# CHECK-NOT: fatal error + +f = open("bigoutput.c", "wb") +for i in range(0, 15000): + # this test requires UNIX line endings + f.write("int v%d;\n" % i) +f.close() Index: test/Preprocessor/lit.local.cfg =================================================================== --- test/Preprocessor/lit.local.cfg +++ test/Preprocessor/lit.local.cfg @@ -0,0 +1,2 @@ +config.suffixes = ['.c', '.cpp', '.m', '.mm', '.cu', '.cl', '.s', '.S', '.py'] +