]> granicus.if.org Git - clang/commit
[OpenCL] Actually activate Frontend/opencl.cl test and fix test bugs
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 14 Jul 2016 12:56:21 +0000 (12:56 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 14 Jul 2016 12:56:21 +0000 (12:56 +0000)
commit3256a8abe0fb695c43f19c0ae53a485c0c0864db
tree08919c412ae51fa4211af6bb41fd286456e2d88b
parent8280665c910d426fe5843cb141cd7ee25c9dd648
[OpenCL] Actually activate Frontend/opencl.cl test and fix test bugs

rL275318 added the test Frontend/opencl.cl test, but that test was never actually run because Frontend/lit.local.cfg doesn't contain the '.cl' file suffix.

Once the test is activated, it fails with (unintended) compile errors in the newly added CHECK_INVALID_OPENCL_VERSION checks.

This patch adds the '.cl' file suffix to Frontend/lit.local.cfg to activate the test and fixes the test bug by adding '-fblocks' to the relevant command lines.

Patch by Martin Böhme!

Differential Revision: http://reviews.llvm.org/D22349

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275405 91177308-0d34-0410-b5e6-96231b3b80d8
test/Frontend/lit.local.cfg
test/Frontend/opencl.cl