aboutsummaryrefslogtreecommitdiff
path: root/test/SemaOpenCL/sampler_t.cl
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaOpenCL/sampler_t.cl')
-rw-r--r--test/SemaOpenCL/sampler_t.cl2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaOpenCL/sampler_t.cl b/test/SemaOpenCL/sampler_t.cl
index 5a1850b02cbd..8473fa33631a 100644
--- a/test/SemaOpenCL/sampler_t.cl
+++ b/test/SemaOpenCL/sampler_t.cl
@@ -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};