aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-07-25 16:56:36 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:17:04 -0300
commita456b8d969eb81331cf35cfbfab8690072bae692 (patch)
treea89143c355ccf6c7f3831cde66d1ed234fa058b7 /tests/libsample
parent68c8d2a8f047d0dc8384c701af49a6c6205917ed (diff)
Added test for a typedef to a primitive numerical type.
Diffstat (limited to 'tests/libsample')
-rw-r--r--tests/libsample/size.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/libsample/size.h b/tests/libsample/size.h
index 6154245f7..3915bf502 100644
--- a/tests/libsample/size.h
+++ b/tests/libsample/size.h
@@ -182,5 +182,17 @@ inline const Size operator/(const Size& s, double div)
return Size(s.m_width / div, s.m_height / div);
}
+typedef double real;
+class LIBSAMPLE_API SizeF
+{
+public:
+ SizeF(real width, real height) : m_width(width), m_height(height) {}
+ real width() { return m_width; }
+ real height() { return m_height; }
+private:
+ real m_width;
+ real m_height;
+};
+
#endif // SIZE_H