summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2003-09-23 20:03:30 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2003-09-23 20:03:30 +0000
commit11f10e6b1f34001a5abd7b0046c28610b058b1ff (patch)
tree743380001d2341c199e3740ca7296f1783cef17c /libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc
parent1593ad2eddcadbfcefe8ff4abecffb724d71aedb (diff)
downloadgcc-11f10e6b1f34001a5abd7b0046c28610b058b1ff.tar.gz
locale_facets.tcc: Tweak to avoid warnings.
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. From-SVN: r71693
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc')
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc6
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc4
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc6
6 files changed, 14 insertions, 14 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc
index 2a1012d812e..9b7a942b206 100644
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-in.cc
@@ -37,7 +37,7 @@ void test05()
typedef std::filebuf::int_type int_type;
typedef filebuf::traits_type traits_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
int_type c1, c2, c3;
// int_type sgetc()
@@ -64,7 +64,7 @@ void test05()
}
}
-main()
+int main()
{
test05();
return 0;
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc
index ca92295456e..0395682dec3 100644
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-io.cc
@@ -38,7 +38,7 @@ void test05()
typedef std::filebuf::int_type int_type;
typedef filebuf::traits_type traits_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
int_type c1, c2, c3;
// int_type sgetc()
@@ -79,7 +79,7 @@ void test05()
}
}
-main()
+int main()
{
test05();
return 0;
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc
index cdd9bf47051..a663de2409c 100644
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/1-out.cc
@@ -37,8 +37,8 @@ void test05()
typedef std::filebuf::int_type int_type;
typedef filebuf::traits_type traits_type;
- bool test = true;
- int_type c1, c2, c3;
+ bool test __attribute__((unused)) = true;
+ int_type c1, c2;
// int_type sgetc()
// if read_cur not avail, return uflow(), else return *read_cur
@@ -62,7 +62,7 @@ void test05()
}
}
-main()
+int main()
{
test05();
return 0;
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc
index 3c539de1840..bb08c18636d 100644
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-in.cc
@@ -37,7 +37,7 @@ void test05()
typedef std::filebuf::int_type int_type;
typedef filebuf::traits_type traits_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
int_type c1, c2, c3;
// int_type sgetc()
@@ -64,7 +64,7 @@ void test05()
}
}
-main()
+int main()
{
test05();
return 0;
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc
index 09b6e8a7f0a..1e4bb4ea091 100644
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-io.cc
@@ -38,7 +38,7 @@ void test05()
typedef std::filebuf::int_type int_type;
typedef filebuf::traits_type traits_type;
- bool test = true;
+ bool test __attribute__((unused)) = true;
int_type c1, c2, c3;
// int_type sgetc()
@@ -78,7 +78,7 @@ void test05()
}
}
-main()
+int main()
{
test05();
return 0;
diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc
index 1db40febda2..0357a0ba4fa 100644
--- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sgetc/char/2-out.cc
@@ -37,8 +37,8 @@ void test05()
typedef std::filebuf::int_type int_type;
typedef filebuf::traits_type traits_type;
- bool test = true;
- int_type c1, c2, c3;
+ bool test __attribute__((unused)) = true;
+ int_type c1, c2;
// int_type sgetc()
// if read_cur not avail, return uflow(), else return *read_cur
@@ -63,7 +63,7 @@ void test05()
}
}
-main()
+int main()
{
test05();
return 0;