mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
Emit output of PCH consistency checking test case to a separate text file and grep that
llvm-svn: 98695
This commit is contained in:
@@ -5,15 +5,18 @@ const char *s2 = m0;
|
||||
// RUN: echo '#define m0 ""' > %t.h
|
||||
// RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h
|
||||
// RUN: echo '' > %t.h
|
||||
// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2>&1 | grep "size of file"
|
||||
// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr
|
||||
// RUN: grep "size of file" %t.stderr
|
||||
|
||||
// RUN: echo '#define m0 000' > %t.h
|
||||
// RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h
|
||||
// RUN: echo '' > %t.h
|
||||
// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2>&1 | grep "size of file"
|
||||
// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr
|
||||
// RUN: grep "size of file" %t.stderr
|
||||
|
||||
// RUN: echo '#define m0 000' > %t.h
|
||||
// RUN: echo "#define m1 'abcd'" >> %t.h
|
||||
// RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h
|
||||
// RUN: echo '' > %t.h
|
||||
// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2>&1 | grep "size of file"
|
||||
// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr
|
||||
// RUN: grep "size of file" %t.stderr
|
||||
|
||||
Reference in New Issue
Block a user