xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/opencl-extensions.cl (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -emit-pch -o %t %s
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -include-pch %t -fsyntax-only %s
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc#ifndef HEADER
5*f4a2713aSLionel Sambuc#define HEADER
6*f4a2713aSLionel Sambuc// Header.
7*f4a2713aSLionel Sambuc
8*f4a2713aSLionel Sambuc#pragma OPENCL EXTENSION cl_khr_fp64 : enable
9*f4a2713aSLionel Sambuc
10*f4a2713aSLionel Sambuc#else
11*f4a2713aSLionel Sambuc// Using the header.
12*f4a2713aSLionel Sambuc
13*f4a2713aSLionel Sambucvoid test(void) {
14*f4a2713aSLionel Sambuc  double d;
15*f4a2713aSLionel Sambuc}
16*f4a2713aSLionel Sambuc
17*f4a2713aSLionel Sambuc#endif
18