#3042: rts defines "real_main" which can clash with user C code
---------------------------------+------------------------------------------
    Reporter:  duncan            |        Owner:                  
        Type:  bug               |       Status:  closed          
    Priority:  normal            |    Milestone:                  
   Component:  Runtime System    |      Version:  6.10.1          
    Severity:  normal            |   Resolution:  worksforme      
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Changes (by simonmar):

  * status:  new => closed
  * resolution:  => worksforme

Comment:

 Indeed I tried a little example, and didn't see any problems:

 {{{
 #include <stdlib.h>
 #include <stdio.h>

 void real_main(void)
 {
     exit(42);
 }

 void main(int argc, char *argv[])
 {
     printf("main\n");
     real_main();
 }
 }}}

 {{{
 > ./a.out
 main
 [3]    25611 exit 42    ./a.out
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3042#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to