#1258 add sim compile test for anonymous enum (#1259)

This commit is contained in:
Scott Fennell 2022-04-28 12:22:21 -05:00 committed by GitHub
parent 5e987a8bd9
commit 7c58425f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,5 @@
trick.stop(15.0);
trick.real_time_enable()
trick.sim_control_panel_set_enabled(True)

View File

@ -0,0 +1,21 @@
/************************TRICK HEADER*************************
PURPOSE:
()
LIBRARY DEPENDENCIES:
*************************************************************/
#include "sim_objects/default_trick_sys.sm"
##include "starter.h"
class StarterSimObject : public Trick::SimObject {
public:
Starter starter;
StarterSimObject() {
}
};
StarterSimObject starterSimObject;

View File

@ -0,0 +1,3 @@
TRICK_CFLAGS += -I./models
TRICK_CXXFLAGS += -I./models

View File

@ -0,0 +1,5 @@
#include "starter.h"
Starter::Starter() {
}

View File

@ -0,0 +1,14 @@
/*************************************************************************
PURPOSE: (Starter class)
LIBRARY DEPENDENCY:
(
(starter.cpp)
)
**************************************************************************/
class Starter {
public:
Starter();
public:
enum {VAR = 6};
};

View File

@ -7,6 +7,7 @@ unexport TRICK_PYTHON_PATH
SIMS_TO_COMPILE_ONLY = \
SIM_alloc_test \
SIM_anon_enum \
SIM_default_member_initializer \
SIM_delete_default_constructor \
SIM_demo_inputfile \