4coder/test_data/sample_files/with (parens).cpp

31 lines
503 B
C++
Raw Normal View History

2018-03-16 18:19:11 +00:00
/*
This is a file meant to be built in order to create
a tricky test for the jump to parser, by placing
parens inside the file name. Therefore it must
trigger a number of compilation errors.
It should be accompanied with the approprioate build.bat
*/
struct Important_Thing{
char *ptr;
};
Important_Thing
foo(int x){
Important_Thing thing;
thing.ptr = x;
thing.bar = foo;
return(
}
int
main(int argc, char **argv){
Important_Thing a = foo(3) = foo(4);
return(0);
}