Mercurial > hg > CbC > CbC_llvm
view clang/test/Driver/cuda-constructor-alias.cu @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line source
// REQUIRES: clang-driver // 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"