[OpenCL] Add test for constant sampler argument

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339678 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sven van Haastregt 2018-08-14 13:56:52 +00:00
parent 6c4fb3c535
commit 25ede4e0de
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ constant sampler_t glb_smp9 = 0x100000000LL; // expected-error{{sampler_t initia
void foo(sampler_t); // expected-note{{passing argument to parameter here}}
void constant_sampler(constant sampler_t s); // expected-error{{parameter may not be qualified with an address space}}
constant struct sampler_s {
sampler_t smp; // expected-error{{the 'sampler_t' type cannot be used to declare a structure or union field}}
} sampler_str = {0};