Files
clang-p2996/flang/test/Lower/record-command-line.f90
Tarun Prabhu 839344f025 [clang][flang][mlir] Reapply "Support -frecord-command-line option (#102975)"
The underlying issue was caused by a file included in two different
places which resulted in duplicate definition errors when linking
individual shared libraries. This was fixed in c3201ddaea
[#109874].
2024-10-14 08:44:24 -06:00

10 lines
400 B
Fortran

! The actual command line is recorded by the frontend and passed on to FC1 as
! the argument to -record-command-line, so in this test, we just match against
! some string with spaces that mimics what a hypothetical command line.
! RUN: %flang_fc1 -record-command-line "exec -o infile" %s -emit-fir -o - | FileCheck %s
! CHECK: module attributes {
! CHECK-SAME: llvm.commandline = "exec -o infile"