diff options
| author | seyko <seyko2@gmail.com> | 2016-04-05 13:05:09 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2016-04-05 13:05:09 +0300 |
| commit | 936819a1b90f2618bb3f86730189cf2895948ba0 (patch) | |
| tree | d77903728370a38a3185f0ad8a2ae982e4405836 /tests/tests2/83_utf8_in_identifiers.c | |
| parent | c9473a7529aa055afe0c50f4251ca2e0fd799de7 (diff) | |
| download | tinycc-936819a1b90f2618bb3f86730189cf2895948ba0.tar.gz tinycc-936819a1b90f2618bb3f86730189cf2895948ba0.tar.bz2 | |
utf8 in identifiers
made like in pcc
(pcc.ludd.ltu.se/ftp/pub/pcc-docs/pcc-utf8-ver3.pdf)
We treat all chars with high bit set as alphabetic.
This allow code like
#include <stdio.h>
int Lefèvre=2;
int main() {
printf("Lefèvre=%d\n",Lefèvre);
return 0;
}
Diffstat (limited to 'tests/tests2/83_utf8_in_identifiers.c')
| -rw-r--r-- | tests/tests2/83_utf8_in_identifiers.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tests2/83_utf8_in_identifiers.c b/tests/tests2/83_utf8_in_identifiers.c new file mode 100644 index 0000000..1f86095 --- /dev/null +++ b/tests/tests2/83_utf8_in_identifiers.c @@ -0,0 +1,9 @@ +#include <stdio.h> +double привет=0.1; +int Lefèvre=2; +int main(){ + printf("привет=%g\n",привет); + printf("Lefèvre=%d\n",Lefèvre); + return 0; +} +// pcc & tcc only |
