1 // PR c++/52510
2 // { dg-do compile { target c++11 } }
3 
4 typedef unsigned char uint8_t;
5 typedef unsigned short uint16_t;
6 typedef unsigned int uint32_t;
7 typedef unsigned long long uint64_t;
8 typedef uint64_t upad64_t;
9 
10 typedef struct _pthread_cond {
11  struct {
12   uint8_t __pthread_cond_flag[4];
13   uint16_t __pthread_cond_type;
14   uint16_t __pthread_cond_magic;
15  } __pthread_cond_flags;
16  upad64_t __pthread_cond_data;
17 } pthread_cond_t;
18 
19 class gtm_rwlock
20 {
21   pthread_cond_t c_readers;
22  public:
23   gtm_rwlock();
24 };
25 
gtm_rwlock()26 gtm_rwlock::gtm_rwlock()
27   : c_readers ({{{0, 0, 0, 0}, 0, 0x4356}, 0})
28 { }
29 
30