gmqcc/data/proto.qc
Wolfgang (Blub) Bumiller 79d8275eee adding data/proto.qc
2012-08-18 17:32:32 +02:00

12 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");
}