• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 %s -verify -pedantic -Wno-empty-translation-unit -fsyntax-only -triple spir-unknown-unknown
2
3#pragma OPENCL EXTENSION cl_khr_fp16 : enable
4
5#pragma OPENCL EXTENSION cl_no_such_extension : disable /* expected-warning {{unknown OpenCL extension 'cl_no_such_extension' - ignoring}} */
6
7#pragma OPENCL EXTENSION all : disable
8#pragma OPENCL EXTENSION all : enable /* expected-warning {{expected 'disable' - ignoring}} */
9
10#pragma OPENCL EXTENSION cl_khr_fp64 : on /* expected-warning {{expected 'enable', 'disable', 'begin' or 'end' - ignoring}} */
11
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}}
16