mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 08:48:49 +00:00
For each .cpp file in the test suite data, there is a .ast file that represents the "known good" baseline of the parser result. Each .cpp file goes through the parser, and the result of invoking `ASTNode::dump()` on the root node is compared to the baseline to find regressions. We also check that there were no parser errors when parsing the .cpp files.
13 lines
125 B
C++
13 lines
125 B
C++
|
|
struct MyStruct
|
|
{
|
|
int x;
|
|
struct s* next;
|
|
};
|
|
|
|
int foo()
|
|
{
|
|
MyStruct s;
|
|
printf("%d\n", s.x);
|
|
return s.x;
|
|
}
|