summaryrefslogtreecommitdiffstats
path: root/test/OpenMP/distribute_dist_schedule_ast_print.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2016-11-10 08:49:37 +0000
committerSerge Pavlov <sepavloff@gmail.com>2016-11-10 08:49:37 +0000
commit8323711b075b24d12b58fce2d033129bd0bb2549 (patch)
tree5d08ae8a69d74be6fe1daad3de4aaefeb802421c /test/OpenMP/distribute_dist_schedule_ast_print.cpp
parent3b61b92e0fdf5093a247270ef1265c85697de3f9 (diff)
Make output of -ast-print a valid C++ code.
Output generated by option -ast-print looks like C/C++ code, and it really is for plain C. For C++ the produced output was not valid C++ code, but the differences were small. With this change the output is fixed and can be compiled. Tests are changed so that output produced by -ast-print is compiled again with the same flags and both outputs are compared. Option -ast-print is extensively used in clang tests but it itself was tested poorly, existing tests only checked that compiler did not crash. There are unit tests in file DeclPrinterTest.cpp, but they test only terse output mode. Differential Revision: https://reviews.llvm.org/D26452 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286439 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/distribute_dist_schedule_ast_print.cpp')
-rw-r--r--test/OpenMP/distribute_dist_schedule_ast_print.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/OpenMP/distribute_dist_schedule_ast_print.cpp b/test/OpenMP/distribute_dist_schedule_ast_print.cpp
index 32389ef149..b06a56e3ee 100644
--- a/test/OpenMP/distribute_dist_schedule_ast_print.cpp
+++ b/test/OpenMP/distribute_dist_schedule_ast_print.cpp
@@ -57,6 +57,7 @@ T tmain(T argc) {
}
int main (int argc, char **argv) {
+// CHECK: int main(int argc, char **argv) {
int b = argc, c, d, e, f, g;
static int a;
// CHECK: static int a;