summaryrefslogtreecommitdiff
path: root/Examples/test-suite/ignore_template_constructor.i
diff options
context:
space:
mode:
authorMarvin Greenberg <public.marvin@gmail.com>2014-01-31 16:03:14 -0500
committerMarvin Greenberg <public.marvin@gmail.com>2014-02-04 11:55:36 -0500
commitc3eff9234c5aaca49be12758bb6b2cc4dc18623f (patch)
treeab3399b8869d217c721bc8990e992b52a8b1bcf0 /Examples/test-suite/ignore_template_constructor.i
parent9fd42e0e67701795e3b9017084e36298158ef39b (diff)
downloadswig-c3eff9234c5aaca49be12758bb6b2cc4dc18623f.tar.gz
Workaround for clang 3.2 libc++ empty struct bug.
Certain tests have empty structs or classes. This encounters a bug with clang: http://llvm.org/bugs/show_bug.cgi?id=16764 This is fixed in later versions of clang, but not the version currently bundled with Mavericks and XCode 5
Diffstat (limited to 'Examples/test-suite/ignore_template_constructor.i')
-rw-r--r--Examples/test-suite/ignore_template_constructor.i10
1 files changed, 6 insertions, 4 deletions
diff --git a/Examples/test-suite/ignore_template_constructor.i b/Examples/test-suite/ignore_template_constructor.i
index ffd541986..31a5505fb 100644
--- a/Examples/test-suite/ignore_template_constructor.i
+++ b/Examples/test-suite/ignore_template_constructor.i
@@ -17,9 +17,10 @@
#if defined(SWIG_GOOD_VECTOR)
%inline %{
class Flow {
- Flow() {}
+double x;
+ Flow():x(0.0) {}
public:
- Flow(double d) {}
+ Flow(double d) : x(d) {}
};
%}
@@ -28,9 +29,10 @@ public:
%inline %{
class Flow {
+double x;
public:
- Flow() {}
- Flow(double d) {}
+ Flow(): x(0.0) {}
+ Flow(double d) : x(d) {}
};
%}