llvm-for-llvmta/tools/clang/test/PCH/opencl-extensions.cl

18 lines
307 B
Common Lisp
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -emit-pch -o %t %s -triple spir-unknown-unknown
// RUN: %clang_cc1 -include-pch %t -fsyntax-only %s -triple spir-unknown-unknown
#ifndef HEADER
#define HEADER
// Header.
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
#else
// Using the header.
void test(void) {
double d;
}
#endif