summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/warning-options.cpp
diff options
context:
space:
mode:
authorJean-Daniel Dupas <devlists@shadowlab.org>2012-05-04 08:08:37 +0000
committerJean-Daniel Dupas <devlists@shadowlab.org>2012-05-04 08:08:37 +0000
commit73d801cd8af9e64d4c87d576026aca53b8390394 (patch)
treeb79a298f2765e130df0cd551ffdb7951b23b545b /clang/test/Driver/warning-options.cpp
parent74a3868dbba7f8b82fd2985a009713b239d237a9 (diff)
downloadbcm5719-llvm-73d801cd8af9e64d4c87d576026aca53b8390394.tar.gz
bcm5719-llvm-73d801cd8af9e64d4c87d576026aca53b8390394.zip
Fix -Wlarge-by-value-copy option handling in the driver.
CC1 supports only the joined format. llvm-svn: 156161
Diffstat (limited to 'clang/test/Driver/warning-options.cpp')
-rw-r--r--clang/test/Driver/warning-options.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Driver/warning-options.cpp b/clang/test/Driver/warning-options.cpp
new file mode 100644
index 00000000000..a36210d7e1b
--- /dev/null
+++ b/clang/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
OpenPOWER on IntegriCloud