generator.common.tests.c external data type as message data added
diff --git a/tests/org.eclipse.etrice.generator.common.tests/models/SendingDataTestC.room b/tests/org.eclipse.etrice.generator.common.tests/models/SendingDataTestC.room
index e0176bf..515f97b 100644
--- a/tests/org.eclipse.etrice.generator.common.tests/models/SendingDataTestC.room
+++ b/tests/org.eclipse.etrice.generator.common.tests/models/SendingDataTestC.room
@@ -21,9 +21,11 @@
ActorClass MrPong {
Interface {
Port PingPongPort: PingPongProtocol
+ Port extTest: PCExternal
}
Structure {
external Port PingPongPort
+ external Port extTest
}
Behavior {
StateMachine {
@@ -151,8 +153,14 @@
"PingPongPort.pongComplexDerived(d);"
}
}
+ Transition tr16: my tp0 -> my tp0 {
+ triggers {
+ <in1: extTest>
+ }
+ }
ChoicePoint cp0
ChoicePoint cp1
+ TransitionPoint tp0
State reply
}
}
@@ -570,6 +578,15 @@
Message pongComplexDerived(d: PingPongDataDerived)
}
}
+
+ ProtocolClass PCExternal {
+ usercode1 {
+ "typedef int extMsg;"
+ }
+ incoming {
+ Message in1(can: DExtMsg)
+ }
+ }
DataClass PingPongData {
Attribute i8ValPPD: int8 = "10"
@@ -587,4 +604,6 @@
DataClass PingPongDataDerived extends PingPongData {
Attribute i32Val3PPDe: int32 = "150"
}
+
+ ExternalType DExtMsg -> "extMsg"
}
\ No newline at end of file