toaruos/userspace/test-cpp.cpp
Kevin Lange c93b5617e8 Support C++ (roughly) in toolchain
* Reenables building of libstdc++
* Enables building of g++
* WARNING: The static binary loader does NOT support static
  initializer functions! You must run them yourself (see
  userspace/test-cpp.cpp for an example that initializes the standard
  streams in order to use cout) until this is fixed.
* C++ stuff is slow to load, try to manually strip, it'll speed things
  up a bit.
2012-11-20 19:28:22 -08:00

9 lines
114 B
C++

#include <iostream>
using namespace std;
int main() {
ios_base::Init();
cout << "hello world!\n";
return 0;
}