1 // Test for proper handling of the init_priority attribute.
2 // Contributed by Hugo Tyson <hmt@cygnus.co.uk>
3 // excess errors test - XFAIL mips*-sgi-irix*
10 Two( int ii, int jj ) { i = ii; j = jj; k = count++; };
11 Two( void ) { i = 0; j = 0; k = count++; };
12 int eye( void ) { return i; };
13 int jay( void ) { return j; };
14 int kay( void ) { return k; };
22 Two foo( 5, 6 ) __attribute__((init_priority(1005)));
24 Two goo __attribute__((init_priority(1007))) = Two( 7, 8 );
34 Two coo[ 3 ] __attribute__((init_priority(1000)));
36 Two koo[ 3 ] __attribute__((init_priority(1000))) = {
42 Two xoo[ 3 ] __attribute__((init_priority(1100)));
44 Two zoo[ 3 ] __attribute__((init_priority(1100))) = {
55 do { if ( x & (1 << (n)) ) return 1; else x |= (1 << (n)); } while (0)
66 if ( 0x3f != x ) return 1;
69 if ( 0x7f != x ) return 1;
72 if ( 0xff != x ) return 1;
80 if ( 0x3fff != x ) return 1;
88 if ( 0xfffff != x ) return 1;