summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-10-02 23:49:29 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-10-02 23:49:29 +0000
commit619a8c7df355c5488c6d53904745282566f746a0 (patch)
tree553838d6f793ea6dff8d646cb050dd77a28d7361 /clang/test
parent740afe276fddfd4125677a0ee0a46b9888b122cd (diff)
downloadbcm5719-llvm-619a8c7df355c5488c6d53904745282566f746a0.tar.gz
bcm5719-llvm-619a8c7df355c5488c6d53904745282566f746a0.zip
CUDA: add separate diagnostics for too few/many exec config args
llvm-svn: 140977
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaCUDA/kernel-call.cu2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/SemaCUDA/kernel-call.cu b/clang/test/SemaCUDA/kernel-call.cu
index 9a22aa77ef4..91b1d49e2d0 100644
--- a/clang/test/SemaCUDA/kernel-call.cu
+++ b/clang/test/SemaCUDA/kernel-call.cu
@@ -14,6 +14,8 @@ int h2(int x) { return 1; }
int main(void) {
g1<<<1, 1>>>(42);
g1(42); // expected-error {{call to global function g1 not configured}}
+ g1<<<1>>>(42); // expected-error {{too few execution configuration arguments to kernel function call}}
+ g1<<<1, 1, 0, 0, 0>>>(42); // expected-error {{too many execution configuration arguments to kernel function call}}
t1(1);
OpenPOWER on IntegriCloud