diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-05-05 02:12:02 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-05-05 02:12:02 +0000 |
commit | ce1035c20f5911fb79376576e0297224df484042 (patch) | |
tree | ae130e9a69935b9ca6d3eb2df8f62118db0e6b6a /clang/test/Driver/cc-log-diagnostics.c | |
parent | c60695a7653c5405330b20182a9f249d9c3f3830 (diff) | |
download | bcm5719-llvm-ce1035c20f5911fb79376576e0297224df484042.tar.gz bcm5719-llvm-ce1035c20f5911fb79376576e0297224df484042.zip |
Frontend: Fix a crash in CC_LOG_DIAGNOSTICS handling.
llvm-svn: 130909
Diffstat (limited to 'clang/test/Driver/cc-log-diagnostics.c')
-rw-r--r-- | clang/test/Driver/cc-log-diagnostics.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/clang/test/Driver/cc-log-diagnostics.c b/clang/test/Driver/cc-log-diagnostics.c index a70686ad615..6c1b8ed896f 100644 --- a/clang/test/Driver/cc-log-diagnostics.c +++ b/clang/test/Driver/cc-log-diagnostics.c @@ -1,7 +1,7 @@ +// RUN: rm -f %t.log // RUN: env RC_DEBUG_OPTIONS=1 \ -// RUN: CC_LOG_DIAGNOSTICS=1 \ -// RUN: CC_LOG_DIAGNOSTICS_FILE=%t.log \ -// RUN: %clang -no-canonical-prefixes -ccc-host-triple x86_64-apple-darwin10 -fsyntax-only %s +// RUN: CC_LOG_DIAGNOSTICS=1 CC_LOG_DIAGNOSTICS_FILE=%t.log \ +// RUN: %clang -Wfoobar -no-canonical-prefixes -ccc-host-triple x86_64-apple-darwin10 -fsyntax-only %s // RUN: FileCheck %s < %t.log int f0() {} @@ -16,6 +16,12 @@ int f0() {} // CHECK: <dict> // CHECK: <key>level</key> // CHECK: <string>warning</string> +// CHECK: <key>message</key> +// CHECK: <string>unknown warning option '-Wfoobar'</string> +// CHECK: </dict> +// CHECK: <dict> +// CHECK: <key>level</key> +// CHECK: <string>warning</string> // CHECK: <key>filename</key> // CHECK: <string>{{.*}}cc-log-diagnostics.c</string> // CHECK: <key>line</key> |