Moved testing of the default header into the Driver test and also added a test line for C++ mode in printf test.
Follow up from https://reviews.llvm.org/D59219
Differential D59486
[OpenCL] Improve testing of default header in C++ mode Anastasia on Mar 18 2019, 5:43 AM. Authored by
Details Moved testing of the default header into the Driver test and also added a test line for C++ mode in printf test. Follow up from https://reviews.llvm.org/D59219
Diff Detail Event TimelineComment Actions I see seven OpenCL C tests using -finclude-default-header option and AFAIK, only test/Driver/include-default-header.cl doesn't parse it. Could you also update OpenCL C tests? grep -r include-default-header clang/test/ clang/test/Headers/opencl-c-header.cl:// RUN: %clang_cc1 -triple spir-unknown-unknown -emit-llvm -o - -finclude-default-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash -ftime-report %s 2>&1 | FileCheck --check-prefix=CHECK --check-prefix=CHECK-MOD %s
Comment Actions OpenCL C++ part looks good. Thanks!
|
According to my understanding test/Driver tests covers only driver component, i.e. all other components like Parser/Sema are not covered by these tests. AFAIK "-###" prints the commands generated by driver, but do not run them.
Do we want to test parsing/Sema for OpenCL C++ mode or do you think that testing OpenCL C mode is enough?