From 18e5490a1d36da346b079497bfb410edd6dd5ab8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Aug 2010 10:00:34 +0200 Subject: Test C++ type handling (anonymous types, aliasing) --- tracer/types/driver.cxx | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tracer/types/driver.cxx (limited to 'tracer/types/driver.cxx') diff --git a/tracer/types/driver.cxx b/tracer/types/driver.cxx new file mode 100644 index 0000000..3b28480 --- /dev/null +++ b/tracer/types/driver.cxx @@ -0,0 +1,35 @@ +// file : tracer/types/driver.cxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +// Test C++ type handling (anonymous types, aliasing). +// + +#include +#include +#include + +#include "test.hxx" +#include "test-odb.hxx" + +using namespace std; +using namespace odb; + +template +struct same_p +{ + static const bool result = false; +}; + +template +struct same_p +{ + static const bool result = true; +}; + +int +main () +{ + assert ((same_p::id_type, int>::result)); +} -- cgit v1.1