1 // RUN
: %clang_cc1 %s -verify -pedantic -fsyntax-only
3 void f1
(double da
) { // expected-error
{{type
'double
' requires cl_khr_fp64 extension
}}
4 double d
; // expected-error {{type 'double' requires cl_khr_fp64 extension}}
5 (void) 1.0; // expected-warning {{double precision constant requires cl_khr_fp64}}
8 #pragma OPENCL EXTENSION cl_khr_fp64
: enable
15 #pragma OPENCL EXTENSION cl_khr_fp64
: disable
18 double d
; // expected-error {{type 'double' requires cl_khr_fp64 extension}}