etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / test / SemaOpenCL / sampler_t.cl
blob96f6dbf086b74a8ea53f6d350c2f360a133998da
1 // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
3 constant sampler_t glb_smp = 5;
5 void foo(sampler_t);
7 void kernel ker(sampler_t argsmp) {
8 local sampler_t smp; // expected-error {{sampler type cannot be used with the __local and __global address space qualifiers}}
9 const sampler_t const_smp = 7;
10 foo(glb_smp);
11 foo(const_smp);
12 foo(5); // expected-error {{sampler_t variable required - got 'int'}}