Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F2730048
dfa.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Mar 13, 7:56 PM
Size
743 B
Mime Type
text/x-c++
Expires
Sun, Mar 15, 7:56 PM (1 d, 15 h)
Engine
blob
Format
Raw Data
Handle
243309
Attached To
rXR Xreate
dfa.cpp
View Options
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*
* DFGtests.cpp
*
* Created on: Jul 23, 2015
* Author: pgess <v.melnychenko@xreate.org>
*/
#include "xreatemanager.h"
#include "pass/dfapass.h"
#include "gtest/gtest.h"
using namespace xreate;
using namespace std;
//DEBT dfa tests: dfa scheme, dfa scheme + return value annoation (example: script/testpass/containers...)
TEST(DFA, CallInstance1) {
std::string program=
R"CODE(
main = function::int{
a(5, 8)
}
a= function(x::int, y::int)::int;entry { x + y}
)CODE";
std::unique_ptr<XreateManager> manager
(XreateManager::prepare(move(program)));
manager->run();
}
Event Timeline
Log In to Comment