diff options
author | Steven Moreland | 2017-11-27 18:05:09 -0600 |
---|---|---|
committer | Steven Moreland | 2017-11-27 18:05:09 -0600 |
commit | 4921bc2e13722ffe3f66b708cfd825b98da9b917 (patch) | |
tree | 79011cbfb7b5805b26148da178fdb2a1c57fd653 /tests | |
parent | 5a05f0e3a1ba21d48dde03053b753790cd86f27c (diff) | |
download | platform-hardware-interfaces-4921bc2e13722ffe3f66b708cfd825b98da9b917.tar.gz platform-hardware-interfaces-4921bc2e13722ffe3f66b708cfd825b98da9b917.tar.xz platform-hardware-interfaces-4921bc2e13722ffe3f66b708cfd825b98da9b917.zip |
Test for references to typedef'd enum.
Allow using an enum even when it is typedef'd.
Test: hidl-gen -Lcheck
Change-Id: I45f8b40d67773c1cd34c9353b847dbae1cc4bdcd
Diffstat (limited to 'tests')
-rw-r--r-- | tests/expression/1.0/IExpressionExt.hal | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/expression/1.0/IExpressionExt.hal b/tests/expression/1.0/IExpressionExt.hal index e96bf0d4..8b56ec66 100644 --- a/tests/expression/1.0/IExpressionExt.hal +++ b/tests/expression/1.0/IExpressionExt.hal | |||
@@ -26,7 +26,9 @@ interface IExpressionExt { | |||
26 | ENUM_BEST = android.hardware.tests.expression@1.0::IExpression.Constants:CONST_BAR, | 26 | ENUM_BEST = android.hardware.tests.expression@1.0::IExpression.Constants:CONST_BAR, |
27 | }; | 27 | }; |
28 | 28 | ||
29 | typedef Color[((Constants:MAX_ARRAY_SIZE << 1) - (Constants:CONST_FOO + 1)*8) >> 1] SixteenColors; | 29 | typedef Constants AlsoConstants; |
30 | |||
31 | typedef Color[((Constants:MAX_ARRAY_SIZE << 1) - (AlsoConstants:CONST_FOO + 1)*8) >> 1] SixteenColors; | ||
30 | struct ArrayOfColors { | 32 | struct ArrayOfColors { |
31 | Color[(Constants:MAX_ARRAY_SIZE << 1) - (Constants:CONST_FOO + 1)*8] my32Colors; // 32 | 33 | Color[(Constants:MAX_ARRAY_SIZE << 1) - (Constants:CONST_FOO + 1)*8] my32Colors; // 32 |
32 | }; | 34 | }; |