summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/testsuite/21_strings/basic_string/cons
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-23 20:03:30 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-23 20:03:30 +0000
commitf8ef786cfd35341f4c3d1742375e22f829a0876f (patch)
tree743380001d2341c199e3740ca7296f1783cef17c /libstdc++-v3/testsuite/21_strings/basic_string/cons
parent33020648811e6f8f2313712ecb0e7ba99e2653b7 (diff)
downloadppe42-gcc-f8ef786cfd35341f4c3d1742375e22f829a0876f.tar.gz
ppe42-gcc-f8ef786cfd35341f4c3d1742375e22f829a0876f.zip
2003-09-23 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.tcc: Tweak to avoid warnings. * testsuite/testsuite_hooks.h: Same. * testsuite/*/*.cc: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71693 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/21_strings/basic_string/cons')
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/char/1.cc4
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/char/2.cc2
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/char/3.cc2
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/char/4.cc2
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/char/5.cc2
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/1.cc4
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/2.cc2
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/3.cc2
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/4.cc2
-rw-r--r--libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/5.cc2
10 files changed, 12 insertions, 12 deletions
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/1.cc
index 8f673c89dbf..996f8ad0d32 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/1.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/1.cc
@@ -27,11 +27,11 @@
void test01(void)
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef std::string::size_type csize_type;
typedef std::string::iterator citerator;
csize_type npos = std::string::npos;
- csize_type csz01, csz02;
+ csize_type csz01;
const char str_lit01[] = "rodeo beach, marin";
const std::string str01(str_lit01);
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/2.cc
index d6458a96712..85c82ba78cf 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/2.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/2.cc
@@ -25,7 +25,7 @@
void test02()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
// template<typename _InputIter>
// basic_string(_InputIter begin, _InputIter end, const allocator& a)
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/3.cc
index 6f40dda1833..fc86271d0bc 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/3.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/3.cc
@@ -27,7 +27,7 @@
void test03()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const char* with_nulls = "This contains \0 a zero byte.";
// These are tests to see how basic_string handles data with NUL
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/4.cc
index fe2f3213215..020eff6f229 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/4.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/4.cc
@@ -26,7 +26,7 @@
// http://gcc.gnu.org/ml/libstdc++/2002-06/msg00025.html
void test04()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
std::string str01("portofino");
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/5.cc
index 4b2f4015854..0aecd998e33 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/5.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/5.cc
@@ -27,7 +27,7 @@
// libstdc++/8347
void test05()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
std::vector<char> empty;
std::string empty2(empty.begin(), empty.end());
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/1.cc
index b1a5b6dd40a..45715fd5c14 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/1.cc
@@ -27,11 +27,11 @@
void test01(void)
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
typedef std::wstring::size_type csize_type;
typedef std::wstring::iterator citerator;
csize_type npos = std::wstring::npos;
- csize_type csz01, csz02;
+ csize_type csz01;
const wchar_t str_lit01[] = L"rodeo beach, marin";
const std::wstring str01(str_lit01);
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/2.cc
index 9eaf4ce2700..c7b6422675a 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/2.cc
@@ -25,7 +25,7 @@
void test02()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
// template<typename _InputIter>
// basic_string(_InputIter begin, _InputIter end, const allocator& a)
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/3.cc
index 46b7287b0e0..882e22c59df 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/3.cc
@@ -27,7 +27,7 @@
void test03()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
const wchar_t* with_nulls = L"This contains \0 a zero byte.";
// These are tests to see how basic_string handles data with NUL
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/4.cc
index 87dab121eab..9140ff759e4 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/4.cc
@@ -26,7 +26,7 @@
// http://gcc.gnu.org/ml/libstdc++/2002-06/msg00025.html
void test04()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
std::wstring str01(L"portofino");
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/5.cc
index d02dc9c8f4b..a426f292c88 100644
--- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/5.cc
+++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/5.cc
@@ -27,7 +27,7 @@
// libstdc++/8347
void test05()
{
- bool test = true;
+ bool test __attribute__((unused)) = true;
std::vector<wchar_t> empty;
std::wstring empty2(empty.begin(), empty.end());
OpenPOWER on IntegriCloud