Add support for -ggnu-pubnames matching the llvm support.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190729 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Driver/debug-options.c b/test/Driver/debug-options.c
index 449d8a9..1f890b2 100644
--- a/test/Driver/debug-options.c
+++ b/test/Driver/debug-options.c
@@ -47,6 +47,8 @@
 // RUN:        -fno-debug-types-section %s 2>&1                       \
 // RUN:        | FileCheck -check-prefix=GIGNORE %s
 //
+// RUN: %clang -### -c -ggnu-pubnames %s 2>&1 | FileCheck -check-prefix=GOPT %s
+//
 // G: "-cc1"
 // G: "-g"
 //
@@ -78,3 +80,5 @@
 // GLTO_NO-NOT: "-gline-tables-only"
 //
 // GIGNORE-NOT: "argument unused during compilation"
+//
+// GOPT: -generate-gnu-dwarf-pub-sections