================
Comment at: test/Tooling/pch.cpp:10
@@ -12,1 +9,3 @@
+// the test file with an unrelated include as second translation unit.
+// Test for an empty file after clang-check is executed.
 // RUN: clang-check "%S/Inputs/pch.cpp" "%s" -- -include-pch %t1 -I "%S" -c 
>%t2 2>&1
----------------
Ariel Bernal wrote:
> Manuel Klimek wrote:
> > Wouldn't an empty file also occur if nothing is processed at all?
> Manuel, yes the file would be empty if nothing is processed. Assuming no 
> processing error, there won't be any output unless it's in debug mode and 
> -debug is specified but even if we could detect that, there won't be any 
> output in release mode (actually -debug won't be recognized). I think the 
> test is still useful because it can detect processing errors.
> 
Another way would be to make clang-check output something like -ast-dump so we 
could test for a non-empty file and if there is a compilation error the test 
will still fail.


http://llvm-reviews.chandlerc.com/D543
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to