Add test for pthread types alignment check.

Bug: 19249079
Change-Id: I83c4f0d11ec5d82a346ae0057d02a92bb1d519e8
This commit is contained in:
Yabin Cui
2015-03-16 22:46:42 -07:00
parent 4149dc944b
commit b584572213
4 changed files with 76 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ typedef struct {
#else
char __private[4];
#endif
} pthread_cond_t __attribute__((aligned(sizeof(long))));
} pthread_cond_t __attribute__((aligned(4)));
#define PTHREAD_COND_INITIALIZER { { 0 } }
@@ -93,7 +93,7 @@ typedef struct {
#else
char __private[40];
#endif
} pthread_rwlock_t __attribute__((aligned(8)));
} pthread_rwlock_t __attribute__((aligned(4)));
#define PTHREAD_RWLOCK_INITIALIZER { { 0 } }