mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 12:51:04 +00:00
adding data/proto.qc
This commit is contained in:
parent
24a21d0816
commit
79d8275eee
1 changed files with 12 additions and 0 deletions
12
data/proto.qc
Normal file
12
data/proto.qc
Normal file
|
@ -0,0 +1,12 @@
|
|||
void(string) print = #1;
|
||||
|
||||
void() correct;
|
||||
void(string) incorrect;
|
||||
|
||||
void() correct = {
|
||||
print("Hello\n");
|
||||
}
|
||||
|
||||
void() incorrect = {
|
||||
printf("The compiler should error about this function having a wrong type\n");
|
||||
}
|
Loading…
Reference in a new issue