mirror of https://github.com/microsoft/clang.git
[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:
parent
6c4fb3c535
commit
25ede4e0de
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue