From a456b8d969eb81331cf35cfbfab8690072bae692 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Mon, 25 Jul 2011 16:56:36 -0300 Subject: Added test for a typedef to a primitive numerical type. --- tests/libsample/size.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/libsample') 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 -- cgit v1.2.3