mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00

Files containing symbols with unicode characters in their name might not be supported on some specific platforms. For example, the Solaris assembler lacks support for UTF-8 characters. ``` Assembler: mangle.d "/var/tmp//cci9q2Sc.s", line 115 : Syntax error Near line: " movzbl test_эльфийские_письмена_9, %eax" Assembler: testmodule.d "/var/tmp//ccBtixAd.s", line 3 : Syntax error Near line: " .globl _D3run17unicode_06_哪里6哪里FiZi" Assembler: ufcs.d "/var/tmp//ccodJ7Ib.s", line 6662 : Syntax error Near line: " .globl _D4ufcs6α8503FiZv" ``` Add a new directive which can be used by other testsuite runners as a hint to selectively disable the test if they know they can't compile this ahead of time.
23 lines
433 B
D
23 lines
433 B
D
// PERMUTE_ARGS:
|
|
// UNICODE_NAMES:
|
|
|
|
// $HeadURL$
|
|
// $Date$
|
|
// $Author$
|
|
|
|
// @author@ Anders F Björklund <afb@algonet.se>
|
|
// @date@ 2005-01-25
|
|
// @uri@ news:ct428n$2qoe$1@digitaldaemon.com
|
|
// @url@ nntp://news.digitalmars.com/D.gnu/983
|
|
|
|
module run.unicode_06_哪里;
|
|
|
|
//UTF-8 chars
|
|
int 哪里(int ö){
|
|
return ö+2;
|
|
}
|
|
|
|
int main(){
|
|
assert(run.unicode_06_哪里.哪里(2)==4);
|
|
return 0;
|
|
}
|