mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
utf8 tests
This commit is contained in:
parent
2164afb8cf
commit
041f8a86d7
3 changed files with 23 additions and 0 deletions
6
tests/utf8-2.tmpl
Normal file
6
tests/utf8-2.tmpl
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
I: utf8.qc
|
||||||
|
D: utf8
|
||||||
|
T: -execute
|
||||||
|
C: -std=fteqcc -futf8
|
||||||
|
M: Sum: ∑ ∑ ∑
|
||||||
|
M: Okay
|
13
tests/utf8.qc
Normal file
13
tests/utf8.qc
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
void print(...) = #1;
|
||||||
|
string ftos (float) = #2;
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
print("Sum: \{x2211} ");
|
||||||
|
print("\{8721} ");
|
||||||
|
print("∑\n");
|
||||||
|
if ('\{x2211}' != '\{8721}' || '\{x2211}' != '∑')
|
||||||
|
print("Fail!\n");
|
||||||
|
else
|
||||||
|
print("Okay\n");
|
||||||
|
|
||||||
|
}
|
4
tests/utf8.tmpl
Normal file
4
tests/utf8.tmpl
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
I: utf8.qc
|
||||||
|
D: trying to compile utf8 codes without -futf8
|
||||||
|
T: -fail
|
||||||
|
C: -std=fteqcc
|
Loading…
Reference in a new issue