Author: svenvh Date: Tue Aug 14 06:56:52 2018 New Revision: 339678 URL: http://llvm.org/viewvc/llvm-project?rev=339678&view=rev Log: [OpenCL] Add test for constant sampler argument
Modified: cfe/trunk/test/SemaOpenCL/sampler_t.cl Modified: cfe/trunk/test/SemaOpenCL/sampler_t.cl URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaOpenCL/sampler_t.cl?rev=339678&r1=339677&r2=339678&view=diff ============================================================================== --- cfe/trunk/test/SemaOpenCL/sampler_t.cl (original) +++ cfe/trunk/test/SemaOpenCL/sampler_t.cl Tue Aug 14 06:56:52 2018 @@ -33,6 +33,8 @@ constant sampler_t glb_smp9 = 0x10000000 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}; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits