dmd/compiler/test/runnable/testmodule.d
Iain Buclaw 10d4332ae7
test: Add UNICODE_NAMES directive to files with utf-8 symbols (#16136)
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.
2024-02-08 13:25:34 +02:00

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;
}