Typedef testcases

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-25 15:33:03 +01:00
parent f6a374c1d5
commit 7cd6a477f8
2 changed files with 17 additions and 0 deletions

12
tests/typedefs.qc Normal file
View file

@ -0,0 +1,12 @@
typedef void(string, ...) ptype;
typedef string(float) funcsf;
ptype print = #1;
funcsf ftos = #2;
void main() {
typedef float funcsf;
funcsf a;
a = 0;
print("A typedeffed function, 0=", ftos(a), "\n");
}

5
tests/typedefs.tmpl Normal file
View file

@ -0,0 +1,5 @@
I: typtedefs.qc
D: typedefs
T: -execute
C: -std=fteqcc
M: A typedeffed function, 0=0