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 //===----------------------------------------------------------------------===// 8 9 // <fstream> 10 11 // template<class charT, class traits = char_traits<charT>> 12 // class basic_filebuf; 13 // 14 // The char type of the stream and the char_type of the traits have to match 15 16 // UNSUPPORTED: no-wide-characters 17 18 #include <fstream> 19 20 std::basic_filebuf<char, std::char_traits<wchar_t> > f; 21 // expected-error-re@streambuf:* {{static assertion failed{{.*}}traits_type::char_type must be the same type as CharT}} 22 // expected-error@fstream:* {{only virtual member functions can be marked 'override'}} 23 // expected-error@fstream:* {{only virtual member functions can be marked 'override'}} 24 // expected-error@fstream:* {{only virtual member functions can be marked 'override'}} 25 // expected-error@fstream:* {{only virtual member functions can be marked 'override'}} 26 // expected-error@fstream:* {{only virtual member functions can be marked 'override'}} 27 // expected-error@fstream:* {{only virtual member functions can be marked 'override'}} 28 // expected-error@fstream:* {{only virtual member functions can be marked 'override'}} 29 // expected-error@fstream:* {{only virtual member functions can be marked 'override'}} 30 // expected-error@fstream:* {{only virtual member functions can be marked 'override'}} 31