OSDN Git Service

* testsuite/lib/libstdc++.exp (check_v3_target_fileio,
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 27_io / basic_filebuf / sgetc / char / 2-in.cc
index 979a3fd..bc1375b 100644 (file)
 
 // You should have received a copy of the GNU General Public License along
 // with this library; see the file COPYING.  If not, write to the Free
-// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 // USA.
 
 // 27.8.1.4 Overridden virtual functions
 
+// { dg-require-fileio "" }
+
 #include <fstream>
 #include <testsuite_hooks.h>
 #include <testsuite_io.h>
@@ -33,11 +35,11 @@ const char name_01[] = "sgetc.txt"; // file with data in it
 void test05() 
 {
   using namespace std;
-  using namespace __gnu_cxx_test;
+  using namespace __gnu_test;
   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 +66,7 @@ void test05()
   }
 }
 
-main() 
+int main() 
 {
   test05();
   return 0;