mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 17:16:06 +00:00

If a folder's name, where the test fortran.f95 is running, has cc1 the test fails because of CHECK-ASM-NOT: cc1. The solution used in this patch is to add quotation mark around cc1 and cc1as because the driver returns these flags with quotation marks ("") Reviewed By: DavidTruby, echristo Differential Revision: https://reviews.llvm.org/D86132
23 lines
811 B
Fortran
23 lines
811 B
Fortran
! Check that the clang driver can invoke gcc to compile Fortran when in
|
|
! --driver-mode=clang. This is legacy behaviour - see also --driver-mode=flang.
|
|
|
|
! RUN: %clang -target x86_64-unknown-linux-gnu -integrated-as -c %s -### 2>&1 \
|
|
! RUN: | FileCheck --check-prefix=CHECK-OBJECT %s
|
|
! CHECK-OBJECT: gcc
|
|
! CHECK-OBJECT: "-c"
|
|
! CHECK-OBJECT: "-x" "f95"
|
|
! CHECK-OBJECT-NOT: "-cc1as"
|
|
|
|
! RUN: %clang -target x86_64-unknown-linux-gnu -integrated-as -S %s -### 2>&1 \
|
|
! RUN: | FileCheck --check-prefix=CHECK-ASM %s
|
|
! CHECK-ASM: gcc
|
|
! CHECK-ASM: "-S"
|
|
! CHECK-ASM: "-x" "f95"
|
|
! CHECK-ASM-NOT: "-cc1"
|
|
|
|
! RUN: %clang -Wall -target x86_64-unknown-linux-gnu -integrated-as %s -o %t -### 2>&1 | FileCheck --check-prefix=CHECK-WARN %s
|
|
! CHECK-WARN: gcc
|
|
! CHECK-WARN-NOT: "-Wall"
|
|
! CHECK-WARN: ld
|
|
! CHECK-WARN-NOT: "-Wall"
|