diff options
author | Jason Merrill <jason@redhat.com> | 2011-07-22 20:30:13 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-07-22 20:30:13 -0400 |
commit | 15c2ccbac51d3e17c4524946bbf1ee44c6e7f811 (patch) | |
tree | f22ba99ec6e9d52f0b9159d4d0e1ef5c9e8484e0 /gcc/testsuite | |
parent | 5b960c5a6e8aeb08ad9379b94d12e9f5eda74399 (diff) | |
download | gcc-15c2ccbac51d3e17c4524946bbf1ee44c6e7f811.zip gcc-15c2ccbac51d3e17c4524946bbf1ee44c6e7f811.tar.gz gcc-15c2ccbac51d3e17c4524946bbf1ee44c6e7f811.tar.bz2 |
* doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
From-SVN: r176670
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/initlist55.C | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist55.C b/gcc/testsuite/g++.dg/cpp0x/initlist55.C new file mode 100644 index 0000000..cb42e81 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/initlist55.C @@ -0,0 +1,5 @@ +// Test for -Wno-narrowing +// { dg-options "-std=c++0x -pedantic-errors -Wno-narrowing" } + +int i; +float d = { i }; |