diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-02-28 20:49:04 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-02-28 20:49:04 +0000 |
commit | 670326f414ca3f8f2cb1ad2f8bd42d5804b563c8 (patch) | |
tree | 3103b2e66a2a81f188d320278849661086530010 /test/Driver/debug-options.c | |
parent | 7dbefe1b1ffbe1d69cc94d07368065976baa49a1 (diff) | |
download | clang-670326f414ca3f8f2cb1ad2f8bd42d5804b563c8.tar.gz |
[driver] Add support for -g2 and -ggdb debug flags.
rdar://10947759
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/debug-options.c')
-rw-r--r-- | test/Driver/debug-options.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Driver/debug-options.c b/test/Driver/debug-options.c index 867251971d..5dad8e9382 100644 --- a/test/Driver/debug-options.c +++ b/test/Driver/debug-options.c @@ -2,18 +2,26 @@ // rdar://10383444 // RUN: %clang -### -c -g %s 2>&1 | FileCheck -check-prefix=G %s +// RUN: %clang -### -c -g2 %s 2>&1 | FileCheck -check-prefix=G2 %s // RUN: %clang -### -c -g3 %s 2>&1 | FileCheck -check-prefix=G3 %s // 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 // // G: "-cc1" // G: "-g" // +// G2: "-cc1" +// G2: "-g" +// // G3: "-cc1" // G3: "-g" // // GANY: "-cc1" // GANY-NOT: "-g" // +// GGDB: "-cc1" +// GGDB: "-g" +// // GFOO: "-cc1" // GFOO-NOT: "-g" |