summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/debug-options.c
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-06-19 01:46:49 +0000
committerManman Ren <mren@apple.com>2013-06-19 01:46:49 +0000
commit9691f7fa356143011dc0507238368ac3ed5dadf6 (patch)
tree36fbf58b3569afc367e5119d48de914d253f2c18 /clang/test/Driver/debug-options.c
parentf796cf1ade21431ecef2b621cda79d22f4358355 (diff)
downloadbcm5719-llvm-9691f7fa356143011dc0507238368ac3ed5dadf6.tar.gz
bcm5719-llvm-9691f7fa356143011dc0507238368ac3ed5dadf6.zip
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. llvm-svn: 184276
Diffstat (limited to 'clang/test/Driver/debug-options.c')
-rw-r--r--clang/test/Driver/debug-options.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Driver/debug-options.c b/clang/test/Driver/debug-options.c
index fec3f17c48d..981fa908801 100644
--- a/clang/test/Driver/debug-options.c
+++ b/clang/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"
OpenPOWER on IntegriCloud