[libc][NFC] Remove extra ; in exhaustive_test.h. (#124216)
[llvm-project.git] / libcxx / test / std / input.output / stream.buffers / streambuf / streambuf.members / streambuf.buffer / pubseekoff.pass.cpp
blob63fd87c44ce8780a67bc43737c3ca5c5ec67f996
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // <streambuf>
11 // template <class charT, class traits = char_traits<charT> >
12 // class basic_streambuf;
14 // pos_type pubseekoff(off_type off, ios_base::seekdir way,
15 // ios_base::openmode which = ios_base::in | ios_base::out);
17 #include <streambuf>
18 #include <cassert>
20 #include "test_macros.h"
22 template <class CharT>
23 struct test
24 : public std::basic_streambuf<CharT>
26 test() {}
29 int main(int, char**)
32 test<char> t;
33 assert(t.pubseekoff(0, std::ios_base::beg) == -1);
34 assert(t.pubseekoff(0, std::ios_base::beg, std::ios_base::app) == -1);
37 return 0;