summaryrefslogtreecommitdiff
path: root/test/Driver/debug-options.c
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-05-29 08:10:34 +0000
committerAlexey Samsonov <samsonov@google.com>2012-05-29 08:10:34 +0000
commita9cd83b1ddfa7d05e2887f59532e59e626b03ef6 (patch)
tree655a0e6339aeaea25b4a6e87f668ec57f1dcc692 /test/Driver/debug-options.c
parentc4d7675ddd598e3d89237cd04eeba3be322e560c (diff)
downloadclang-a9cd83b1ddfa7d05e2887f59532e59e626b03ef6.tar.gz
Make Clang driver pass the last option from -g group to the compiler.
Leave a better fixme for different debug info flags git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/debug-options.c')
-rw-r--r--test/Driver/debug-options.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/Driver/debug-options.c b/test/Driver/debug-options.c
index b0ad285735..76fcb7b56a 100644
--- a/test/Driver/debug-options.c
+++ b/test/Driver/debug-options.c
@@ -7,8 +7,13 @@
// RUN: %clang -### -c -ganything %s 2>&1 | FileCheck -check-prefix=GANY %s
// RUN: %clang -### -c -ggdb %s 2>&1 | FileCheck -check-prefix=GGDB %s
// RUN: %clang -### -c -gfoo %s 2>&1 | FileCheck -check-prefix=GFOO %s
+// RUN: %clang -### -c -g -g0 %s 2>&1 | FileCheck -check-prefix=GG0 %s
// RUN: %clang -### -c -gline-tables-only %s 2>&1 \
// RUN: | FileCheck -check-prefix=GLTO %s
+// RUN: %clang -### -c -gline-tables-only -g %s 2>&1 \
+// RUN: | FileCheck -check-prefix=GLTO2 %s
+// RUN: %clang -### -c -gline-tables-only -g0 %s 2>&1 \
+// RUN: | FileCheck -check-prefix=GLTO3 %s
//
// G: "-cc1"
// G: "-g"
@@ -28,5 +33,18 @@
// GFOO: "-cc1"
// GFOO-NOT: "-g"
//
+// GG0: "-cc1"
+// GG0-NOT: "-g"
+//
// GLTO: "-cc1"
-// GLTO: "-g"
+// GLTO-NOT: "-g"
+// GLTO: "-gline-tables-only"
+// GLTO-NOT: "-g"
+//
+// GLTO2: "-cc1"
+// GLTO2-NOT: "-gline-tables-only"
+// GLTO2: "-g"
+// GLTO2-NOT: "-gline-tables-only"
+//
+// GLTO3: "-cc1"
+// GLTO3-NOT: "-gline-tables-only"