diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2014-12-31 17:14:28 +0100 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2014-12-31 17:14:28 +0100 |
commit | 67b13ecb9cfd2511c1db62a6cc38cf796cfb2a14 (patch) | |
tree | 3024076418ae753f69ddad48ad92959498886efe /test/regression/alignas.c | |
parent | e89f1e606bc8c9c425628392adc9c69cec666b5e (diff) | |
download | compcert-67b13ecb9cfd2511c1db62a6cc38cf796cfb2a14.tar.gz compcert-67b13ecb9cfd2511c1db62a6cc38cf796cfb2a14.zip |
Add a type system for CompCert C and type-checking constructor functions.
Use these constructor functions in C2C to rely less on the types produced
by the unverified elaborator.
Diffstat (limited to 'test/regression/alignas.c')
-rw-r--r-- | test/regression/alignas.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/regression/alignas.c b/test/regression/alignas.c index 4e887d3a..a6a2e690 100644 --- a/test/regression/alignas.c +++ b/test/regression/alignas.c @@ -33,7 +33,7 @@ struct s { struct s c; char filler3; -struct s _Alignas(32) d; +struct s _Alignas(64) d; char filler4; /* Union */ @@ -77,8 +77,8 @@ int main() #endif printf("c: size = %u, alignment = %u, address mod 16 = %u\n", (unsigned) sizeof(c), (unsigned) _Alignof(c), ((unsigned) &c) & 0xF); - printf("d: size = %u, alignment = %u, address mod 32 = %u\n", - (unsigned) sizeof(d), (unsigned) _Alignof(d), ((unsigned) &d) & 0x1F); + printf("d: size = %u, alignment = %u, address mod 64 = %u\n", + (unsigned) sizeof(d), (unsigned) _Alignof(d), ((unsigned) &d) & 0x3F); printf("e: size = %u, alignment = %u, address mod 16 = %u\n", (unsigned) sizeof(e), (unsigned) _Alignof(e), ((unsigned) &e) & 0xF); printf("f: size = %u, alignment = %u, address mod 32 = %u\n", |