| 1 |
// The --offload-new-driver was crashing when using -save-temps due to a failure in clang-linker-wrapper. |
| 2 |
// The input and output files cannot be the same. |
| 3 |
|
| 4 |
// RUN: %clang --offload-new-driver -### -save-temps -nogpuinc -nogpulib \ |
| 5 |
// RUN: --target=x86_64-unknown-linux-gnu --offload-arch=amdgcnspirv -x hip %s 2>&1 \ |
| 6 |
// RUN: | FileCheck %s |
| 7 |
|
| 8 |
// CHECK-NOT: {{".*clang-linker-wrapper.*"}} {{.*}} "-o" "[[OUTPUT_FILE:.*.o]]" {{.*}}"[[OUTPUT_FILE]]" |
| 9 |
// CHECK: {{".*clang-linker-wrapper.*"}} {{.*}} "-o" {{".*.hipfb"}} |