diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-10-13 17:29:54 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:18:28 -0300 |
commit | 6e4789d62120ac99bc6abbd96ae1cd4cf378baaa (patch) | |
tree | 786cf229bdb64adb148ad90de23b1b6a0ac5ed12 /tests/libsample/handle.h | |
parent | 59ed4b9d8952615d59614ba7b8e1ad51df433a84 (diff) |
Added a test for a typedef of a pointer to a struct.
This is only a compilation test, no Python test was provided.
Diffstat (limited to 'tests/libsample/handle.h')
-rw-r--r-- | tests/libsample/handle.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/libsample/handle.h b/tests/libsample/handle.h index f76277f5a..d6651cdd1 100644 --- a/tests/libsample/handle.h +++ b/tests/libsample/handle.h @@ -31,7 +31,7 @@ class OBJ typedef OBJ* HANDLE; -class HandleHolder +class LIBSAMPLE_API HandleHolder { public: explicit HandleHolder(HANDLE ptr = 0) : m_handle(ptr) {} @@ -51,5 +51,11 @@ private: HANDLE m_handle; }; -#endif // HANDLE_H +struct PrimitiveStruct {}; +typedef struct PrimitiveStruct* PrimitiveStructPtr; +struct LIBSAMPLE_API PrimitiveStructPointerHolder +{ + PrimitiveStructPtr primitiveStructPtr; +}; +#endif // HANDLE_H |