gmqcc/data/proto.qc

13 lines
224 B
C++
Raw Normal View History

2012-08-18 15:32:32 +00:00
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");
}