mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-18 16:31:29 +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");
|
||
|
}
|