diff options
author | Jean-Daniel Dupas <devlists@shadowlab.org> | 2012-05-04 08:08:37 +0000 |
---|---|---|
committer | Jean-Daniel Dupas <devlists@shadowlab.org> | 2012-05-04 08:08:37 +0000 |
commit | 2e4fd6d9a1c8ba9c400324d230cfc49050550dea (patch) | |
tree | e0ea844061ca943577e7aa3f4ca31a344614f5d7 /test | |
parent | fd00eecad6fa5400cf37269d84361a0551d0e6d3 (diff) |
Fix -Wlarge-by-value-copy option handling in the driver.
CC1 supports only the joined format.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Driver/warning-options.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Driver/warning-options.cpp b/test/Driver/warning-options.cpp new file mode 100644 index 0000000000..a36210d7e1 --- /dev/null +++ b/test/Driver/warning-options.cpp @@ -0,0 +1,4 @@ +// RUN: %clang -### -Wlarge-by-value-copy %s 2>&1 | FileCheck -check-prefix=LARGE_VALUE_COPY_DEFAULT %s +// LARGE_VALUE_COPY_DEFAULT: -Wlarge-by-value-copy=64 +// RUN: %clang -### -Wlarge-by-value-copy=128 %s 2>&1 | FileCheck -check-prefix=LARGE_VALUE_COPY_JOINED %s +// LARGE_VALUE_COPY_JOINED: -Wlarge-by-value-copy=128 |