diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2023-05-22 16:47:56 +0200 |
---|---|---|
committer | Georg-Johann Lay <avr@gjlay.de> | 2023-05-22 16:50:18 +0200 |
commit | 9f5065094c9632a50bea604d5896a139609e50cf (patch) | |
tree | b6a13b0f06080d96f28fc4051cfbca8ad29e630d /gcc/testsuite/c-c++-common/pr19807-2.c | |
parent | 11ef53f0e8fa7408eaedf6d9fc781fd6faa1e5f6 (diff) | |
download | gcc-9f5065094c9632a50bea604d5896a139609e50cf.zip gcc-9f5065094c9632a50bea604d5896a139609e50cf.tar.gz gcc-9f5065094c9632a50bea604d5896a139609e50cf.tar.bz2 |
testsuite/52641: Fix tests that fail for 16-bit int / pointer targets.
gcc/testsuite/
PR testsuite/52641
* c-c++-common/pr19807-2.c: Use __SIZEOF_INT__ instead of 4.
* gcc.c-torture/compile/pr103813.c: Require size32plus.
* gcc.c-torture/execute/pr108498-2.c: Same.
* gcc.c-torture/compile/pr96426.c: Condition on
__SIZEOF_LONG_LONG__ == __SIZEOF_DOUBLE__.
* gcc.c-torture/execute/pr103417.c: Require int32plus.
* gcc.dg/pr104198.c: Same.
* gcc.dg/pr21137.c: Same.
* gcc.dg/pr88905.c: Same.
* gcc.dg/pr90838.c: Same.
* gcc.dg/pr97317.c: Same.
* gcc.dg/pr100292.c: Require int32.
* gcc.dg/pr101008.c: Same.
* gcc.dg/pr96542.c: Same.
* gcc.dg/pr96674.c: Same.
* gcc.dg/pr97750.c: Require ptr_eq_long.
Diffstat (limited to 'gcc/testsuite/c-c++-common/pr19807-2.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/pr19807-2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/c-c++-common/pr19807-2.c b/gcc/testsuite/c-c++-common/pr19807-2.c index 529b9c9..29a3703 100644 --- a/gcc/testsuite/c-c++-common/pr19807-2.c +++ b/gcc/testsuite/c-c++-common/pr19807-2.c @@ -6,7 +6,7 @@ int i; int main() { int a[4]; - if ((char*)&a[1] + 4*i + 4 != (char*)&a[i+2]) + if ((char*)&a[1] + __SIZEOF_INT__*i + __SIZEOF_INT__ != (char*)&a[i+2]) link_error(); return 0; } |