Skip to content

Commit c8f9626

Browse files
committed
with fix
Created using spr 1.3.4
1 parent baed235 commit c8f9626

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

libcxx/src/iostream.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
1818

1919
template <class StreamT, class BufferT>
2020
union 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;

libcxx/test/std/input.output/iostreams.base/ios.base/ios.types/ios_Init/ios_Init.global.pass.cpp

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,12 @@
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

1815
struct 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; }

0 commit comments

Comments
 (0)