Yaxun Liu | 39cf40f | 2016-05-16 17:06:34 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-pch -o %t %s -triple spir-unknown-unknown |
2 | // RUN: %clang_cc1 -include-pch %t -fsyntax-only %s -triple spir-unknown-unknown | ||||
Peter Collingbourne | 5df20e0 | 2011-02-15 19:46:30 +0000 | [diff] [blame] | 3 | |
4 | #ifndef HEADER | ||||
5 | #define HEADER | ||||
6 | // Header. | ||||
7 | |||||
8 | #pragma OPENCL EXTENSION cl_khr_fp64 : enable | ||||
9 | |||||
10 | #else | ||||
11 | // Using the header. | ||||
12 | |||||
13 | void test(void) { | ||||
14 | double d; | ||||
15 | } | ||||
16 | |||||
17 | #endif |