mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
373 B
D
15 lines
373 B
D
module parser.test_astbase;
|
|
|
|
// Simple test to check whether ASTBase respects the interface
|
|
// that the parser expects from an AST family
|
|
|
|
void main()
|
|
{
|
|
import dmd.astbase;
|
|
import dmd.globals;
|
|
import dmd.parse;
|
|
import dmd.errorsink;
|
|
|
|
scope parser = new Parser!ASTBase(null, null, false, new ErrorSinkStderr, null, false);
|
|
assert(parser !is null);
|
|
}
|