Files
clang-p2996/clang/test/Driver/cuda-constructor-alias.cu
Fangrui Song 63fbc77121 [Driver][test] Remove unused/obsoleted REQUIRES: clang-driver
It (introduced by 556d713c70) appears to be
related to the removed dragonegg project. In addition, the feature was a bit
misnamed and may lur users to unnecessarily use it.
2022-04-12 13:29:46 -07:00

13 lines
471 B
Plaintext

// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
// Check that we don't pass -mconstructor-aliases to CUDA device-side
// compilation, but we do pass it to host-side compilation.
// RUN: %clang -### -target x86_64-linux-gnu %s 2>&1 | FileCheck %s
// CHECK: "-cc1"
// CHECK-NOT: "-fcuda-is-device" {{.*}}"-mconstructor-aliases"
// CHECK-NOT: "-mconstructor-aliases" {{.*}}"-fcuda-is-device"
// CHECK: "-cc1"
// CHECK-SAME: "-mconstructor-aliases"