summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--icetray/unittests/testOptions.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/icetray/unittests/testOptions.cpp b/icetray/unittests/testOptions.cpp
index b0bfdee..a205755 100644
--- a/icetray/unittests/testOptions.cpp
+++ b/icetray/unittests/testOptions.cpp
@@ -12,3 +12,17 @@ ICETRAY_OPTIONS(TestOptions,
FACTORY(TestOptions, IceTray::OptionsFactory);
+class TestOptionsInline : public IceTray::Options {
+ public:
+ TestOptionsInline() : IceTray::Options("Test options inline")
+ {
+ }
+
+ ICETRAY_OPTIONS_INLINE(
+ ("testIntInline", boost::program_options::value(&testInt), "testInt")
+ );
+
+ int testInt;
+};
+FACTORY(TestOptionsInline, IceTray::OptionsFactory);
+