diff options
author | Hans Wennborg <hans@hanshq.net> | 2016-05-25 00:43:45 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2016-05-25 00:43:45 +0000 |
commit | debfed9ef0aa349771661a00cc8c472e258d3d93 (patch) | |
tree | b26e4b345c0dcc13f6e323fa93767e4c79fba00d /clang/test/Driver/cl-options.c | |
parent | 293772e72e3efb0ee27e768214d5c4dd01dc49a7 (diff) | |
download | bcm5719-llvm-debfed9ef0aa349771661a00cc8c472e258d3d93.tar.gz bcm5719-llvm-debfed9ef0aa349771661a00cc8c472e258d3d93.zip |
clang-cl: Fix unused argument warning when combining /O2 and /Ob2
llvm-svn: 270642
Diffstat (limited to 'clang/test/Driver/cl-options.c')
-rw-r--r-- | clang/test/Driver/cl-options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index 2e68b18217e..bd0087b9865 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -99,6 +99,8 @@ // RUN: %clang_cl /Ob2 -### -- %s 2>&1 | FileCheck -check-prefix=Ob2 %s // RUN: %clang_cl /Odb2 -### -- %s 2>&1 | FileCheck -check-prefix=Ob2 %s +// RUN: %clang_cl /O2 /Ob2 -### -- %s 2>&1 | FileCheck -check-prefix=Ob2 %s +// Ob2-NOT: warning: argument unused during compilation: '/O2' // Ob2: -finline-functions // RUN: %clang_cl /Od -### -- %s 2>&1 | FileCheck -check-prefix=Od %s |