From 0f26350831228c8c460a57448e421a1e4c763293 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Thu, 22 Sep 2011 00:44:17 +0200 Subject: [PATCH] Add namespace2 test for C++0x. Passes. --- c++0x/Makefile | 3 +++ c++0x/namespace2.cpp | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 c++0x/namespace2.cpp diff --git a/c++0x/Makefile b/c++0x/Makefile index f3c0dc4..f79d37a 100644 --- a/c++0x/Makefile +++ b/c++0x/Makefile @@ -17,3 +17,6 @@ attribute: attribute.o $(LIBS) namespace: namespace.o $(LIBS) $(CXX) -o $@ $< $(LIBS) $(LDFLAGS) + +namespace2: namespace2.o $(LIBS) + $(CXX) -o $@ $< $(LIBS) $(LDFLAGS) diff --git a/c++0x/namespace2.cpp b/c++0x/namespace2.cpp new file mode 100644 index 0000000..2b438d3 --- /dev/null +++ b/c++0x/namespace2.cpp @@ -0,0 +1,16 @@ +#include + +#include "xml-template.h" + +using namespace std; + +int main(int argc, char **argv) +{ + Substitute master_directive = { + make_pair("title", new Replace("Namespace tests")), + make_pair("#hello", new Replace("Replaced.")), + }; + + process_file("../xml/namespace2.xml", argv[1], &master_directive); + return(0); +} -- 2.39.2