1 // RUN: not %clang_cc1 -fcxx-exceptions -fcuda-is-device -fsyntax-only \
2 // RUN: -ferror-limit 2 2>&1 %s | FileCheck %s
4 #include "Inputs/cuda.h"
6 // CHECK: cannot use 'throw' in __host__ __device__ function
7 // CHECK: cannot use 'throw' in __host__ __device__ function
8 // CHECK-NOT: cannot use 'throw' in __host__ __device__ function
9 // CHECK: too many errors emitted, stopping now
11 inline __host__ __device__ void hasInvalid() {
15 __global__ void use0() {