1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <streambuf>
11 
12 // template <class charT, class traits = char_traits<charT> >
13 // class basic_streambuf;
14 
15 // pos_type pubseekpos(pos_type sp,
16 //                     ios_base::openmode which = ios_base::in | ios_base::out;
17 
18 #include <streambuf>
19 #include <cassert>
20 
21 template <class CharT>
22 struct test
23     : public std::basic_streambuf<CharT>
24 {
testtest25     test() {}
26 };
27 
main()28 int main()
29 {
30     {
31         test<char> t;
32         assert(t.pubseekpos(0, std::ios_base::app) == -1);
33     }
34 }
35