Debug Info: support for gdwarf-2 gdwarf-3 gdwarf-4
These options will add a module flag with name "Dwarf Version".
The behavior flag is currently set to Warning, so when two values disagree,
a warning will be emitted.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184276 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Driver/debug-options.c b/test/Driver/debug-options.c
index fec3f17..981fa90 100644
--- a/test/Driver/debug-options.c
+++ b/test/Driver/debug-options.c
@@ -7,7 +7,7 @@
// RUN: %clang -### -c -ggdb %s 2>&1 | FileCheck -check-prefix=G %s
// RUN: %clang -### -c -ggdb1 %s 2>&1 | FileCheck -check-prefix=G %s
// RUN: %clang -### -c -ggdb3 %s 2>&1 | FileCheck -check-prefix=G %s
-// RUN: %clang -### -c -gdwarf-2 %s 2>&1 | FileCheck -check-prefix=G %s
+// RUN: %clang -### -c -gdwarf-2 %s 2>&1 | FileCheck -check-prefix=G_D2 %s
//
// RUN: %clang -### -c -gfoo %s 2>&1 | FileCheck -check-prefix=G_NO %s
// RUN: %clang -### -c -g -g0 %s 2>&1 | FileCheck -check-prefix=G_NO %s
@@ -27,6 +27,9 @@
//
// G: "-cc1"
// G: "-g"
+//
+// G_D2: "-cc1"
+// G_D2: "-gdwarf-2"
//
// G_NO: "-cc1"
// G_NO-NOT: "-g"