Home | History | Annotate | Download | only in solaris
      1 /* Test that the .SUNW_ldynsym section is correctly read. */
      2 
      3 #include <stdlib.h>
      4 
      5 __attribute__((noinline))
      6 static void function3(size_t size)
      7 {
      8    malloc(size);
      9 }
     10 
     11 __attribute__((noinline))
     12 static void function2(size_t size)
     13 {
     14    function3(size);
     15 }
     16 
     17 __attribute__((noinline))
     18 static void function(size_t size)
     19 {
     20    function2(size);
     21 }
     22 
     23 int main(void)
     24 {
     25    function(10);
     26 
     27    return 0;
     28 }
     29 
     30