]> git.sesse.net Git - xml-template/blobdiff - c++0x/attribute-empty.cpp
Add attribute-empty test for C++0x, which passes.
[xml-template] / c++0x / attribute-empty.cpp
diff --git a/c++0x/attribute-empty.cpp b/c++0x/attribute-empty.cpp
new file mode 100644 (file)
index 0000000..b79836b
--- /dev/null
@@ -0,0 +1,16 @@
+#include <stdio.h>
+
+#include "xml-template.h"
+
+using namespace std;
+
+int main(int argc, char **argv)
+{
+       Substitute master_directive = {
+               make_pair("color", new Replace("blue")),
+               make_pair("#things", new Clone { }),
+       };
+
+       process_file("../xml/clone.xml", argv[1], &master_directive);
+       return(0);
+}