diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2025-05-02 07:42:02 +0200 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2025-05-02 07:42:02 +0200 |
| commit | fc486627a4ecbae797fa6856d8a9204ea85f4db8 (patch) | |
| tree | ff3dae4c0e5d980d8e2da4fc6256ae839269bbcd /xsd/tests/cxx/tree/union/ctor/driver.cxx | |
| parent | 1c188393cd2e271ed2581471b601fb5960777fd8 (diff) | |
| parent | ecba0bbd9947036dd82f16ab95252f8db445e149 (diff) | |
Merge tag 'debian/4.0.0-10' into developdevelop
Bugfix release
Diffstat (limited to 'xsd/tests/cxx/tree/union/ctor/driver.cxx')
| -rw-r--r-- | xsd/tests/cxx/tree/union/ctor/driver.cxx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/xsd/tests/cxx/tree/union/ctor/driver.cxx b/xsd/tests/cxx/tree/union/ctor/driver.cxx new file mode 100644 index 0000000..14a8565 --- /dev/null +++ b/xsd/tests/cxx/tree/union/ctor/driver.cxx @@ -0,0 +1,31 @@ +// file : tests/cxx/tree/union/ctor/driver.cxx +// copyright : Copyright (c) 2006-2014 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +// Test union constructors. +// +#include <string> + +#include "test.hxx" + +using namespace std; +using namespace test; + +int +main () +{ + // Test ctor(const std::string&) + // + { + string const s ("123"); + int_string_union u (s); + type t (s); + } + + // Test ctor(const char*). + // + { + int_string_union u ("123"); + type t ("123"); + } +} |
