etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / test / SemaOpenCL / extension-fp64.cl
blobe0c2b1ea4b53df962076861f83b7706b97db23a0
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
10 void f2(void) {
11 double d;
12 (void) 1.0;
15 #pragma OPENCL EXTENSION cl_khr_fp64 : disable
17 void f3(void) {
18 double d; // expected-error {{type 'double' requires cl_khr_fp64 extension}}