blob: 26b93f0694574a2ffcb4530a10c06f45968ba8d3 [file] [log] [blame]
Artem Belevich0ff05cd2015-07-13 23:27:56 +00001// 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__