1 // RUN: %clang_cc1 -emit-pch %s -o %t
2 // RUN: %clang_cc1 -verify -verify-ignore-unexpected=note -include-pch %t -fsyntax-only %s
7 #pragma clang force_cuda_host_device begin
8 #pragma clang force_cuda_host_device begin
9 #pragma clang force_cuda_host_device end
17 #pragma clang force_cuda_host_device end
21 __attribute__((device)) void device() {
24 host_only(); // expected-error {{no matching function for call}}