summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/include-default-header.cl
Commit message (Collapse)AuthorAgeFilesLines
* [OpenCL] Improved testing of default header.Anastasia Stulova2019-03-191-2/+3
| | | | | | | | | Improved some checks and moved testing of the default header in C++ mode into the Headers folder. Differential Revision: https://reviews.llvm.org/D59486 llvm-svn: 356450
* Fix up testcase to:Eric Christopher2017-03-151-1/+3
| | | | | | | | a) avoid actually compiling anything b) avoid depositing files in the test directory c) use a check line to make sure that we're looking for the correct behavior llvm-svn: 297917
* fix build break by removing the target on command lineGuansong Zhang2017-03-151-1/+1
| | | | llvm-svn: 297896
* enable -save-temps with -finclude-defult-headerGuansong Zhang2017-03-151-0/+4
Currently the two flags can not work together. To illustrate the issue, we can have an one line file a.cl contains only an empty function cat a.cl void test(){} Then use clang -v -save-temps -x cl -Xclang -cl-std=CL2.0 -Xclang -finclude-default-header -target amdgcn -S -c a.cl we will get redefinition errors for various things. The reason is that the -finclude-default-header flag is not meant to be on cc1 command other than the preprocessor. The fix is modeled after the code just below the change to filter the -finclude-default-header flag out when we are not in the preprocess phase. Differential Revision: https://reviews.llvm.org/D30743 llvm-svn: 297890
OpenPOWER on IntegriCloud