Commit 0343f967 authored by Sarah Spall's avatar Sarah Spall Committed by Vikram Narayanan

adding tests to repo

parent 447a230c
#include <string>
#include "tester"
#include "test.h"
int main(int argc, char ** argv)
{
if(argc != 2)
{
exit(0);
}
try
{
char * file = argv[1];
Parser::parse(std::string(file));
printf("completed call to parse\n");
}
catch (const Parser::ParseException e)
{
exit(0);
}
}
message foo_interface{
capability foo;
capability bar;
}
module name {
projection super_block<struct super_block> {
[in] int field1;
}
}
#include <test>
rpc int foo(capability cap, char v1, int v2);
message foo_interface{
capability foo;
capability bar;
}
projection super_block <struct super_block> {
[out,in] int field1;
[out] char field2;
}
rpc int bar(projection super_block *sb);
module name {
projection super_block2<struct super_block> {
[in] int field1;
}
}
rpc int foo2(projection name::super_block * sb);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment