1 ! This only checks that the command line is correctly passed on to the
2 ! -record-command-line option FC1 option and that the latter does not complain
3 ! about anything. The correct lowering to a module attribute and beyond will
4 ! be checked in other tests.
6 ! RUN: %flang -### -target x86_64-unknown-linux -frecord-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-RECORD %s
7 ! RUN: %flang -### -target x86_64-unknown-macosx -frecord-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-RECORD %s
8 ! RUN: not %flang -### -target x86_64-unknown-windows -frecord-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-RECORD-ERROR %s
10 ! RUN: %flang -### -target x86_64-unknown-linux -fno-record-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-NO-RECORD %s
11 ! RUN: %flang -### -target x86_64-unknown-macosx -fno-record-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-NO-RECORD %s
12 ! RUN: %flang -### -target x86_64-unknown-windows -fno-record-command-line %s 2>&1 | FileCheck --check-prefix=CHECK-NO-RECORD %s
14 ! CHECK-RECORD: "-record-command-line"
15 ! CHECK-NO-RECORD-NOT: "-record-command-line"
16 ! CHECK-RECORD-ERROR: error: unsupported option '-frecord-command-line' for target