diff options
author | Daniel Jasper <djasper@google.com> | 2016-12-20 10:05:04 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2016-12-20 10:05:04 +0000 |
commit | 04092174f77a5cba9a2ff50d88002ffd82e478a5 (patch) | |
tree | 26173d59f69e4e47b3b875abbcf6175c69b4ed83 /test/SemaOpenCL/null_queue.cl | |
parent | add07b73fd0f5cd4110bf6c944112df9350380d5 (diff) | |
download | clang-04092174f77a5cba9a2ff50d88002ffd82e478a5.tar.gz |
Revert "[OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand."
This reverts commit r290171. It triggers a bunch of warnings, because
the new enumerator isn't handled in all switches. We want a warning-free
build.
Replied on the commit with more details.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290173 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaOpenCL/null_queue.cl')
-rw-r--r-- | test/SemaOpenCL/null_queue.cl | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/SemaOpenCL/null_queue.cl b/test/SemaOpenCL/null_queue.cl deleted file mode 100644 index 518f7138de..0000000000 --- a/test/SemaOpenCL/null_queue.cl +++ /dev/null @@ -1,12 +0,0 @@ -// RUN: %clang_cc1 %s -cl-std=CL2.0 -verify -pedantic -fsyntax-only -extern queue_t get_default_queue(); - -bool compare() { - return 1 == get_default_queue() && // expected-error{{invalid operands to binary expression ('int' and 'queue_t')}} - get_default_queue() == 1; // expected-error{{invalid operands to binary expression ('queue_t' and 'int')}} -} - -void init() { - queue_t q1 = 1; // expected-error{{initializing 'queue_t' with an expression of incompatible type 'int'}} - queue_t q = 0; -} |