[clang] 08247d7 - [Driver][test] Fix continuation lines from debug-options.c

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 26 13:47:56 PDT 2023


Author: Fangrui Song
Date: 2023-07-26T13:47:39-07:00
New Revision: 08247d70711ad9472647ef4f948f1f67139e8888

URL: https://github.com/llvm/llvm-project/commit/08247d70711ad9472647ef4f948f1f67139e8888
DIFF: https://github.com/llvm/llvm-project/commit/08247d70711ad9472647ef4f948f1f67139e8888.diff

LOG: [Driver][test] Fix continuation lines from debug-options.c

Without RUN: in the continuation lines, they just test a quirk of -###
that clang returns with 0.

Added: 
    

Modified: 
    clang/test/Driver/debug-options.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/debug-options.c b/clang/test/Driver/debug-options.c
index 8617949cea1c87..2e0cca053eaf75 100644
--- a/clang/test/Driver/debug-options.c
+++ b/clang/test/Driver/debug-options.c
@@ -217,32 +217,21 @@
 // RUN:             | FileCheck -check-prefix=G_ONLY_DWARF2 %s
 // RUN: %clang -### -c -gline-directives-only -g0 %s 2>&1 \
 // RUN:             | FileCheck -check-prefix=GLIO_NO %s
-//
-// RUN: %clang -### -c -grecord-gcc-switches %s 2>&1 \
-//             | FileCheck -check-prefix=GRECORD %s
-// RUN: %clang -### -c -gno-record-gcc-switches %s 2>&1 \
-//             | FileCheck -check-prefix=GNO_RECORD %s
-// RUN: %clang -### -c -grecord-gcc-switches -gno-record-gcc-switches %s 2>&1 \
-//             | FileCheck -check-prefix=GNO_RECORD %s/
-// RUN: %clang -### -c -grecord-gcc-switches -o - %s 2>&1 \
-//             | FileCheck -check-prefix=GRECORD_O %s
-// RUN: %clang -### -c -O3 -ffunction-sections -grecord-gcc-switches %s 2>&1 \
-//             | FileCheck -check-prefix=GRECORD_OPT %s
-//
-// RUN: %clang -### -c -grecord-command-line %s 2>&1 \
-//             | FileCheck -check-prefix=GRECORD %s
-// RUN: %clang -### -c -gno-record-command-line %s 2>&1 \
-//             | FileCheck -check-prefix=GNO_RECORD %s
-// RUN: %clang -### -c -grecord-command-line -gno-record-command-line %s 2>&1 \
-//             | FileCheck -check-prefix=GNO_RECORD %s/
-// RUN: %clang -### -c -grecord-command-line -o - %s 2>&1 \
-//             | FileCheck -check-prefix=GRECORD_O %s
-// RUN: %clang -### -c -O3 -ffunction-sections -grecord-command-line %s 2>&1 \
-//             | FileCheck -check-prefix=GRECORD_OPT %s
-//
-// RUN: %clang -### -c -gstrict-dwarf -gno-strict-dwarf %s 2>&1 \
-// RUN:        | FileCheck -check-prefix=GIGNORE %s
-//
+
+// RUN: %clang -### -c -grecord-gcc-switches %s 2>&1 | FileCheck -check-prefix=GRECORD %s
+// RUN: %clang -### -c -gno-record-gcc-switches %s 2>&1 | FileCheck -check-prefix=GNO_RECORD %s
+// RUN: %clang -### -c -grecord-gcc-switches -gno-record-gcc-switches %s 2>&1 | FileCheck -check-prefix=GNO_RECORD %s
+// RUN: %clang -### -c -grecord-gcc-switches -o - %s 2>&1 | FileCheck -check-prefix=GRECORD_O %s
+// RUN: %clang -### -c -O3 -ffunction-sections -grecord-gcc-switches %s 2>&1 | FileCheck -check-prefix=GRECORD_OPT %s
+
+// RUN: %clang -### -c -grecord-command-line %s 2>&1 | FileCheck -check-prefix=GRECORD %s
+// RUN: %clang -### -c -gno-record-command-line %s 2>&1 | FileCheck -check-prefix=GNO_RECORD %s
+// RUN: %clang -### -c -grecord-command-line -gno-record-command-line %s 2>&1 | FileCheck -check-prefix=GNO_RECORD %s
+// RUN: %clang -### -c -grecord-command-line -o - %s 2>&1 | FileCheck -check-prefix=GRECORD_O %s
+// RUN: %clang -### -c -O3 -ffunction-sections -grecord-command-line %s 2>&1 | FileCheck -check-prefix=GRECORD_OPT %s
+
+// RUN: %clang -### -c -gstrict-dwarf -gno-strict-dwarf %s 2>&1 | FileCheck -check-prefix=GIGNORE %s
+
 // RUN: %clang -### -c -ggnu-pubnames %s 2>&1 | FileCheck -check-prefix=GPUB %s
 // RUN: %clang -### -c -ggdb %s 2>&1 | FileCheck -check-prefix=NOPUB %s
 // RUN: %clang -### -c -ggnu-pubnames -gno-gnu-pubnames %s 2>&1 | FileCheck -check-prefix=NOPUB %s
@@ -370,15 +359,15 @@
 // GLIO_NO-NOT: -debug-info-kind=
 //
 // GRECORD: "-dwarf-debug-flags"
-// GRECORD: -### -c -grecord-gcc-switches
+// GRECORD: -### -c -grecord-command-line
 //
 // GNO_RECORD-NOT: "-dwarf-debug-flags"
-// GNO_RECORD-NOT: -### -c -grecord-gcc-switches
+// GNO_RECORD-NOT: -### -c -grecord-command-line
 //
 // GRECORD_O: "-dwarf-debug-flags"
-// GRECORD_O: -### -c -grecord-gcc-switches -o -
+// GRECORD_O: -### -c -grecord-command-line -o -
 //
-// GRECORD_OPT: -### -c -O3 -ffunction-sections -grecord-gcc-switches
+// GRECORD_OPT: -### -c -O3 -ffunction-sections -grecord-command-line
 //
 // GIGNORE-NOT: "argument unused during compilation"
 //


        


More information about the cfe-commits mailing list