File tree Expand file tree Collapse file tree 2 files changed +6
-14
lines changed
test/std/input.output/iostreams.base/ios.base/ios.types/ios_Init Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
1818
1919template <class StreamT, class BufferT>
2020union stream_data {
21- stream_data () {}
22- ~stream_data () {}
21+ constexpr stream_data () {}
22+ constexpr ~stream_data () {}
2323 struct {
2424 // The stream has to be the first element, since that's referenced by the stream declarations in <iostream>
2525 StreamT stream;
Original file line number Diff line number Diff line change 88
99#include < iostream>
1010
11- extern " C" const char *__asan_default_options () {
12- return " check_initialization_order=true:strict_init_order=true" ;
13- }
11+ extern " C" const char * __asan_default_options () { return " check_initialization_order=true:strict_init_order=true" ; }
1412
15- // Test that ios used from globals constructors doesn't trigger
16- // Asan initialization-order-fiasco.
13+ // Test that ios used from globals constructors doesn't trigger Asan initialization-order-fiasco.
1714
1815struct Global {
19- Global () {
20- std::cout << " Hello!" ;
21- }
16+ Global () { std::cout << " Hello!" ; }
2217} global;
2318
24- int main (int , char **)
25- {
26- return 0 ;
27- }
19+ int main (int , char **) { return 0 ; }
You can’t perform that action at this time.
0 commit comments