diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.warn/iomanip.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.warn/iomanip.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.warn/iomanip.C b/gcc/testsuite/g++.old-deja/g++.warn/iomanip.C new file mode 100644 index 000000000..c437b26db --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.warn/iomanip.C @@ -0,0 +1,13 @@ +// { dg-do assemble } +// { dg-options "-O -Winline" } +// Bug: g++ wouldn't inline op<< because it was an explicit instantiation. +// Origin: Jason Merrill <jason@cygnus.com> + +#include <iomanip> +#include <iostream> + +void +f() +{ + std::cout << std::setw(3); +} |