]> git.sesse.net Git - xml-template/blob - c++0x/structure.cpp
Add structure test for C++0x. Passes.
[xml-template] / c++0x / structure.cpp
1 #include <stdio.h>
2
3 #include "xml-template.h"
4
5 using namespace std;
6
7 int main(int argc, char **argv)
8 {
9         Substitute master_directive = {
10                 make_pair("#outer", new Clone {
11                         new Substitute { make_pair("#inner", new Replace("One")) },
12                         new Substitute { make_pair("#inner", new Replace("Two")) },
13                         new Substitute { make_pair("#inner", new Replace("Three")) },
14                 }),
15         };
16
17         process_file("../xml/structure.xml", argv[1], &master_directive);
18         return(0);
19 }