Home | History | Annotate | Download | only in jni
      1 // -*- C++ -*-
      2 //===-------------------- support/android/wchar_support.c ------------------===//
      3 //
      4 //                     The LLVM Compiler Infrastructure
      5 //
      6 // This file is dual licensed under the MIT and the University of Illinois Open
      7 // Source Licenses. See LICENSE.TXT for details.
      8 //
      9 //===----------------------------------------------------------------------===//
     10 
     11 #include <iostream>
     12 #include <locale>
     13 
     14 int main(void) {
     15   // TODO(ajwong): This imbue should not be required. There is a problem with
     16   // the module initialization code that causes the default "C" locale to not
     17   // be created correctly. The manual imbue allows us to proceed with
     18   // development for now.
     19   std::cout.imbue(std::locale("C"));
     20   std::cout << "Hello World" << std::endl;
     21   return 0;
     22 }
     23