diff options
author | Richard Biener <rguenther@suse.de> | 2015-07-01 08:37:19 +0000 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2015-07-01 08:37:19 +0000 |
commit | d9ab4649161bc60fc68c9bb36d54b28142a3797a (patch) | |
tree | e4a5056a7da5f93f5dbacd47b6f22b61fdf92aad /gcc/testsuite/gcc.target/i386/iamcu/test_basic_array_size_and_align.c | |
parent | e79886b1b133e4fd15f1c5c16d3e5a28c1233c33 (diff) | |
parent | 00b24710e5527e8b51904824c6e2a7717455c233 (diff) |
2015-07-01 Richard Biener <rguenther@suse.de>match-and-simplify
Merge from trunk r225116 through r225225.
* match-bitwise.pd: Removed and merged remains into
match.pd.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/match-and-simplify@225229 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/iamcu/test_basic_array_size_and_align.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/iamcu/test_basic_array_size_and_align.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/iamcu/test_basic_array_size_and_align.c b/gcc/testsuite/gcc.target/i386/iamcu/test_basic_array_size_and_align.c new file mode 100644 index 00000000000..e4b6369c19a --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/iamcu/test_basic_array_size_and_align.c @@ -0,0 +1,32 @@ +/* Test of simple arrays, size and alignment. */ + +#include "defines.h" +#include "macros.h" + + +int +main (void) +{ + /* Integral types. */ + run_signed_tests3(check_array_size_and_align, char, TYPE_SIZE_CHAR, TYPE_ALIGN_CHAR); + run_signed_tests3(check_array_size_and_align, short, TYPE_SIZE_SHORT, TYPE_ALIGN_SHORT); + run_signed_tests3(check_array_size_and_align, int, TYPE_SIZE_INT, TYPE_ALIGN_INT); + run_signed_tests3(check_array_size_and_align, long, TYPE_SIZE_LONG, TYPE_ALIGN_LONG); + run_signed_tests3(check_array_size_and_align, long long, TYPE_SIZE_LONG_LONG, TYPE_ALIGN_LONG_LONG); + check_array_size_and_align(enum dummytype, TYPE_SIZE_ENUM, TYPE_ALIGN_ENUM); + + /* Floating point types. */ + check_array_size_and_align(float, TYPE_SIZE_FLOAT, TYPE_ALIGN_FLOAT); + check_array_size_and_align(double, TYPE_SIZE_DOUBLE, TYPE_ALIGN_DOUBLE); +#ifdef CHECK_LONG_DOUBLE + check_array_size_and_align(long double, TYPE_SIZE_LONG_DOUBLE, TYPE_ALIGN_LONG_DOUBLE); +#endif +#ifdef CHECK_FLOAT128 + check_array_size_and_align(__float128, TYPE_SIZE_FLOAT128, TYPE_ALIGN_FLOAT128); +#endif + + /* Pointer types. The function pointer doesn't work with these macros. */ + check_array_size_and_align(void *, TYPE_SIZE_POINTER, TYPE_ALIGN_POINTER); + + return 0; +} |