We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc61769 commit 9f1bcb6Copy full SHA for 9f1bcb6
libcxx/test/std/input.output/iostream.format/output.streams/ostream_sentry/destruct.pass.cpp
@@ -7,7 +7,6 @@
7
//
8
//===----------------------------------------------------------------------===//
9
10
-// XFAIL: libcpp-no-exceptions
11
// <ostream>
12
13
// template <class charT, class traits = char_traits<charT> >
@@ -18,6 +17,8 @@
18
17
#include <ostream>
19
#include <cassert>
20
+#include "test_macros.h"
21
+
22
int sync_called = 0;
23
24
template <class CharT>
@@ -58,6 +59,7 @@ int main()
58
59
unitbuf(os);
60
}
61
assert(sync_called == 1);
62
+#ifndef TEST_HAS_NO_EXCEPTIONS
63
{
64
testbuf1<char> sb;
65
std::ostream os(&sb);
@@ -73,4 +75,5 @@ int main()
73
75
74
76
77
78
+#endif
79
0 commit comments