File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
llvmlibc-samples/src/cpp-baremetal-semihosting-llvmlibc Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -858,7 +858,6 @@ if(ENABLE_CXX_LIBS)
858
858
-DLIBCXX_ENABLE_THREADS=OFF
859
859
-DLIBCXX_ENABLE_WIDE_CHARACTERS=OFF
860
860
-DLIBCXX_ENABLE_FILESYSTEM=OFF
861
- -DLIBCXX_ENABLE_LOCALIZATION=OFF
862
861
-DLIBCXX_ENABLE_UNICODE=OFF
863
862
-DLIBUNWIND_ENABLE_THREADS=OFF
864
863
-DLIBCXXABI_ENABLE_EXCEPTIONS=${ENABLE_EXCEPTIONS}
Original file line number Diff line number Diff line change 4
4
// See https://llvm.org/LICENSE.txt for license information.
5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
7
- #include < cstdio> // iostream is not supported yet
7
+ #include < cstdio>
8
+ #include < iostream>
8
9
#include < vector>
9
10
10
11
int test_exceptions (int i)
@@ -30,7 +31,7 @@ int main(void) {
30
31
try {
31
32
int result = test_exceptions (0 );
32
33
} catch (...) {
33
- std::puts ( " Exception caught." ) ;
34
+ std::cout << " Exception caught." << std::endl ;
34
35
}
35
36
return 0 ;
36
37
}
You can’t perform that action at this time.
0 commit comments