diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-10 22:40:53 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-10 22:40:53 +0000 |
commit | c3a3727c7af6af93f8b2505350afe1ef86ec305a (patch) | |
tree | 206f6a898f14be4347844c3a052eb119e56eae1e /libstdc++-v3/testsuite/17_intro/headers | |
parent | 75776d0d344be24d4d48b6f73716865c92fa4a51 (diff) | |
download | gcc-c3a3727c7af6af93f8b2505350afe1ef86ec305a.tar.gz |
2011-02-10 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/47662
* include/bits/c++config: Do not use alternative token.
* testsuite/17_intro/headers/c++1998/operator_names.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170026 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/17_intro/headers')
-rw-r--r-- | libstdc++-v3/testsuite/17_intro/headers/c++1998/operator_names.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++1998/operator_names.cc b/libstdc++-v3/testsuite/17_intro/headers/c++1998/operator_names.cc new file mode 100644 index 00000000000..d1d01db99c4 --- /dev/null +++ b/libstdc++-v3/testsuite/17_intro/headers/c++1998/operator_names.cc @@ -0,0 +1,28 @@ +// { dg-do compile } +// { dg-options "-fno-operator-names" } + +// Copyright (C) 2011 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING3. If not see +// <http://www.gnu.org/licenses/>. + +// Avoid using PCH +#include <cerrno> +#include <bits/stdc++.h> +#include <bits/stdtr1c++.h> +#include <bits/extc++.h> + +int or, xor, and; + |