190075Sobrien/* { dg-do run } */
290075Sobrien
390075Sobrienclass foo_t {
490075Sobrien    int x;
5169689Skan    static int count;
6132718Skanpublic:
790075Sobrien    foo_t(void) { x=++count; }
890075Sobrien    int get(void) { return x; }
990075Sobrien};
1090075Sobrien
1190075Sobrienfoo_t foo2 __attribute__((init_priority(5000)));
1290075Sobrien