aboutsummaryrefslogtreecommitdiff
path: root/clang/test/PCH/opencl-extensions.cl
blob: a22b007f9d540438c3772c95dc523421d74b38e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -emit-pch -o %t %s
// RUN: %clang_cc1 -include-pch %t -fsyntax-only %s 

#ifndef HEADER
#define HEADER
// Header.

#pragma OPENCL EXTENSION cl_khr_fp64 : enable

#else
// Using the header.

void test(void) {
  double d;
}

#endif