2012-06-06 21:25:21 +04:00
|
|
|
// RUN: %clang_cc1 %s -verify -pedantic -Wno-empty-translation-unit -fsyntax-only
|
2011-02-14 04:42:53 +03:00
|
|
|
|
|
|
|
#pragma OPENCL EXTENSION cl_khr_fp16 : enable
|
|
|
|
|
|
|
|
#pragma OPENCL EXTENSION cl_no_such_extension : disable /* expected-warning {{unknown OpenCL extension 'cl_no_such_extension' - ignoring}} */
|
|
|
|
|
2011-10-06 07:00:50 +04:00
|
|
|
#pragma OPENCL EXTENSION all : disable
|
|
|
|
#pragma OPENCL EXTENSION all : enable /* expected-warning {{unknown OpenCL extension 'all' - ignoring}} */
|
|
|
|
|
2011-02-14 04:42:53 +03:00
|
|
|
#pragma OPENCL EXTENSION cl_khr_fp64 : on /* expected-warning {{expected 'enable' or 'disable' - ignoring}} */
|
|
|
|
|
|
|
|
#pragma OPENCL FP_CONTRACT ON
|
|
|
|
#pragma OPENCL FP_CONTRACT OFF
|
|
|
|
#pragma OPENCL FP_CONTRACT DEFAULT
|
|
|
|
#pragma OPENCL FP_CONTRACT FOO // expected-warning {{expected 'ON' or 'OFF' or 'DEFAULT' in pragma}}
|