Skip to content
  • Anders Carlsson's avatar
    If a global initializer has a non-trivial constructor or destructor, we never... · a18ed9b1
    Anders Carlsson authored
    If a global initializer has a non-trivial constructor or destructor, we never want to defer generation of it, even if it is declared static.
    
    With this change we're finally able to compile and run the (infamous)
    
    #include <string>
    #include <iostream>
    
    int main(int argc, char **argv) {
      std::cout << "Hello, World" << std::endl;
    }
    
    $ clang hello.cpp -lstdc++ -o hello
    $ ./hello 
    Hello, World
    
    llvm-svn: 83559
    a18ed9b1
Loading