Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gdc.test/fail_compilation/fail322.d @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* TEST_OUTPUT: --- fail_compilation/fail322.d(10): Error: function fail322.digestToString2 (ref char[16] digest) is not callable using argument types (string) --- */ void main() { digestToString2("1234567890123456"); } void digestToString2(ref char[16] digest) { assert(digest[0] == 0xc3); assert(digest[15] == 0x3b); }