1 // RUN
: %clang_cc1 %s -verify -pedantic -Wno-empty-translation-unit -fsyntax-only -triple spir-unknown-unknown
3 #pragma OPENCL EXTENSION cl_khr_fp16
: enable
5 #pragma OPENCL EXTENSION cl_no_such_extension
: disable
/* expected-warning
{{OpenCL extension
'cl_no_such_extension
' unknown or does not require pragma - ignoring
}} */
7 #pragma OPENCL EXTENSION all
: disable
8 #pragma OPENCL EXTENSION all
: enable
/* expected-warning
{{expected
'disable
' - ignoring
}} */
10 #pragma OPENCL EXTENSION cl_khr_fp64
: on
/* expected-warning
{{expected
'enable
', 'disable
', 'begin
' or
'end
' - ignoring
}} */
12 #pragma OPENCL FP_CONTRACT ON
13 #pragma OPENCL FP_CONTRACT OFF
14 #pragma OPENCL FP_CONTRACT DEFAULT
15 #pragma OPENCL FP_CONTRACT FOO
// expected-warning
{{expected
'ON
' or
'OFF
' or
'DEFAULT
' in pragma
}}