1 // Make sure we can process CUDA file even if driver creates multiple jobs
2 // RUN: c-index-test -test-load-source all %s | FileCheck %s -check-prefix=CHECK-ANY
3 // Make sure we process correct side of cuda compilation
4 // RUN: c-index-test -test-load-source all --cuda-host-only %s | FileCheck %s -check-prefix=CHECK-HOST
5 // RUN: c-index-test -test-load-source all --cuda-device-only %s | FileCheck %s -check-prefix=CHECK-DEVICE
6 
7 // CHECK-ANY: macro definition=__cplusplus
8 // CHECK-HOST-NOT: macro definition=__CUDA_ARCH__
9 // CHECK-DEVICE: macro definition=__CUDA_ARCH__
10