gcc/testsuite/gdc.test/runnable/testmodule.d
raw| 1 | // PERMUTE_ARGS: |
| 2 | // UNICODE_NAMES: |
| 3 | |
| 4 | // $HeadURL$ |
| 5 | // $Date$ |
| 6 | // $Author$ |
| 7 | |
| 8 | // @author@ Anders F Björklund <[email protected]> |
| 9 | // @date@ 2005-01-25 |
| 10 | // @uri@ news:[email protected] |
| 11 | // @url@ nntp://news.digitalmars.com/D.gnu/983 |
| 12 | |
| 13 | module run.unicode_06_哪里; |
| 14 | |
| 15 | //UTF-8 chars |
| 16 | int 哪里(int ö){ |
| 17 | return ö+2; |
| 18 | } |
| 19 | |
| 20 | int main(){ |
| 21 | assert(run.unicode_06_哪里.哪里(2)==4); |
| 22 | return 0; |
| 23 | } |