brintos

brintos / llvm-project-archived public Read only

0
0
Text · 508 B · 688f2cc Raw
14 lines · plain
1// RUN: %clang_cc1 -verify -fblocks -cl-std=CL3.0 -cl-ext=-all,+__opencl_c_device_enqueue,+__opencl_c_generic_address_space,+__opencl_c_program_scope_global_variables %s2// RUN: %clang_cc1 -verify -fblocks -cl-std=CL3.0 -cl-ext=-__opencl_c_device_enqueue %s3 4void f() {5  clk_event_t e;6  queue_t q;7#ifndef __opencl_c_device_enqueue8// expected-error@-3 {{use of undeclared identifier 'clk_event_t'}}9// expected-error@-3 {{use of undeclared identifier 'queue_t'}}10#else11// expected-no-diagnostics12#endif13}14