mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-12 05:12:03 +00:00
13 lines
224 B
C++
13 lines
224 B
C++
|
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");
|
||
|
}
|