mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-30 23:51:46 +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");
|
||
|
}
|