aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gcc.gnu.org>2019-03-10 21:55:30 +0000
committerIain Buclaw <ibuclaw@gcc.gnu.org>2019-03-10 21:55:30 +0000
commit5f49d2fc4e52398f04a39f81069bb5d1c21bb168 (patch)
treeeec381467d65575a54b03cacbdba6c61a8fbc314 /gcc/testsuite/gdc.test
parent42a84c28ef2fec57faa061e0676437e354c8c521 (diff)
downloadgcc-5f49d2fc4e52398f04a39f81069bb5d1c21bb168.zip
gcc-5f49d2fc4e52398f04a39f81069bb5d1c21bb168.tar.gz
gcc-5f49d2fc4e52398f04a39f81069bb5d1c21bb168.tar.bz2
re PR d/87824 (x86_64-linux multilib issues)
PR d/87824 d/dmd: Merge upstream dmd fcc235e8e Associative arrays are value types, which are not covariant with the pointer type typeof(null). Updates https://gcc.gnu.org/PR87824 Reviewed-on: https://github.com/dlang/dmd/pull/9435 From-SVN: r269561
Diffstat (limited to 'gcc/testsuite/gdc.test')
-rw-r--r--gcc/testsuite/gdc.test/runnable/nulltype.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gdc.test/runnable/nulltype.d b/gcc/testsuite/gdc.test/runnable/nulltype.d
index 32d1174..c400d7f 100644
--- a/gcc/testsuite/gdc.test/runnable/nulltype.d
+++ b/gcc/testsuite/gdc.test/runnable/nulltype.d
@@ -127,7 +127,7 @@ void test8589()
{
void f(T function() dg) { assert(!dg()); }
- static assert((T.sizeof == typeof(null).sizeof) == result);
+ static assert((is(typeof(null) function() : T function())) == result);
static assert(is(typeof( f(&retnull) )) == result);
static assert(is(typeof( f(()=>null) )) == result);
static if (result)
@@ -138,7 +138,7 @@ void test8589()
}
test!(true, int*)();
test!(true, Object)();
- test!(true, int[int])();
+ test!(false, int[int])();
test!(false, int[])();
test!(false, void delegate())();
}