risc-v-tlm/tests/CPP/cout/cout.cpp

22 lines
320 B
C++
Raw Normal View History

2020-06-11 15:24:48 +08:00
#include <iostream>
using namespace std;
int main(void) {
int aux[5] = {0, 1, 2, 3, 4};
int aux2[5];
int counter = 0;
cout << "Test Start" << endl;
for ( const auto &x : aux ) std::cout << x << ' ';
std::cout << std::endl;
cout << "Test End" << endl;
asm volatile ("ecall");
return 0;
}