diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-07-21 23:42:07 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-07-21 23:42:07 +0000 |
commit | 8858a03e2fe53a5e9479910a9373df619c130ded (patch) | |
tree | 9c4c56ed6253c4097b7f41761b91281759408c92 /clang/test/Driver/cl-options.c | |
parent | 9d20e427656f659bcdf8dfbaf579a8b1e427ce57 (diff) | |
download | bcm5719-llvm-8858a03e2fe53a5e9479910a9373df619c130ded.tar.gz bcm5719-llvm-8858a03e2fe53a5e9479910a9373df619c130ded.zip |
clang-cl: ignore /showIncludes when combined with /E (PR20336)
Both /showIncludes and /E write to stdout. Allowing both results
in interleaved output and an error when double-closing the file
descriptor, intended to catch issues like this.
llvm-svn: 213589
Diffstat (limited to 'clang/test/Driver/cl-options.c')
-rw-r--r-- | clang/test/Driver/cl-options.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index b5e9722066e..26cd7e9eb4c 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -87,6 +87,10 @@ // RUN: %clang_cl /showIncludes -### -- %s 2>&1 | FileCheck -check-prefix=showIncludes %s // showIncludes: --show-includes +// RUN: %clang_cl /E /showIncludes -### -- %s 2>&1 | FileCheck -check-prefix=showIncludes_E %s +// RUN: %clang_cl /EP /showIncludes -### -- %s 2>&1 | FileCheck -check-prefix=showIncludes_E %s +// showIncludes_E: warning: argument unused during compilation: '--show-includes' + // RUN: %clang_cl /Umymacro -### -- %s 2>&1 | FileCheck -check-prefix=U %s // RUN: %clang_cl /U mymacro -### -- %s 2>&1 | FileCheck -check-prefix=U %s // U: "-U" "mymacro" |