diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-02 23:49:15 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-02 23:49:15 +0000 |
commit | 8591a7f5215f6469603e6bc8f4fdbcc78e215ab9 (patch) | |
tree | e99806082ae238b244b91942709764bc87ab3928 /test/SemaCUDA | |
parent | 80d2355df4a87b52412cc7481496c4a4eccd3db1 (diff) |
CUDA: diagnose unconfigured calls to global functions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCUDA')
-rw-r--r-- | test/SemaCUDA/kernel-call.cu | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/SemaCUDA/kernel-call.cu b/test/SemaCUDA/kernel-call.cu index 7bc7ae1131..9a22aa77ef 100644 --- a/test/SemaCUDA/kernel-call.cu +++ b/test/SemaCUDA/kernel-call.cu @@ -13,6 +13,7 @@ int h2(int x) { return 1; } int main(void) { g1<<<1, 1>>>(42); + g1(42); // expected-error {{call to global function g1 not configured}} t1(1); |