// PR 11767
|
// PR 11767
|
// { dg-do run }
|
// { dg-do run }
|
// { dg-require-profiling "-fprofile-arcs" }
|
// { dg-require-profiling "-fprofile-arcs" }
|
// { dg-options "-fnon-call-exceptions -fprofile-arcs" }
|
// { dg-options "-fnon-call-exceptions -fprofile-arcs" }
|
|
|
#include
|
#include
|
|
|
typedef unsigned long ACE_UINT32;
|
typedef unsigned long ACE_UINT32;
|
extern "C" void abort();
|
extern "C" void abort();
|
|
|
static ACE_UINT32 const msc_maxCurrencyID = 9999;
|
static ACE_UINT32 const msc_maxCurrencyID = 9999;
|
|
|
class ResourceBalanceType2
|
class ResourceBalanceType2
|
{
|
{
|
public:
|
public:
|
explicit ResourceBalanceType2(
|
explicit ResourceBalanceType2(
|
ACE_UINT32 resourceBalanceTypeID,
|
ACE_UINT32 resourceBalanceTypeID,
|
ACE_UINT32 isoValue,
|
ACE_UINT32 isoValue,
|
const std::string& rc_shortName,
|
const std::string& rc_shortName,
|
const std::string& rc_symbol
|
const std::string& rc_symbol
|
);
|
);
|
public:
|
public:
|
const ACE_UINT32 mc_resBalTypeID;
|
const ACE_UINT32 mc_resBalTypeID;
|
const ACE_UINT32 mc_isoValue;
|
const ACE_UINT32 mc_isoValue;
|
const std::string mc_shortName;
|
const std::string mc_shortName;
|
const std::string mc_symbol;
|
const std::string mc_symbol;
|
};
|
};
|
|
|
void f(){}
|
void f(){}
|
|
|
ResourceBalanceType2::ResourceBalanceType2(
|
ResourceBalanceType2::ResourceBalanceType2(
|
ACE_UINT32 resourceBalanceTypeID,
|
ACE_UINT32 resourceBalanceTypeID,
|
ACE_UINT32 isoValue,
|
ACE_UINT32 isoValue,
|
const std::string& rc_shortName,
|
const std::string& rc_shortName,
|
const std::string& rc_symbol)
|
const std::string& rc_symbol)
|
: mc_resBalTypeID(resourceBalanceTypeID),
|
: mc_resBalTypeID(resourceBalanceTypeID),
|
mc_isoValue(isoValue),
|
mc_isoValue(isoValue),
|
mc_shortName(rc_shortName),
|
mc_shortName(rc_shortName),
|
mc_symbol(rc_symbol)
|
mc_symbol(rc_symbol)
|
{
|
{
|
bool isGreater = (mc_isoValue > msc_maxCurrencyID);
|
bool isGreater = (mc_isoValue > msc_maxCurrencyID);
|
f();
|
f();
|
bool temp = mc_isoValue > msc_maxCurrencyID;
|
bool temp = mc_isoValue > msc_maxCurrencyID;
|
if (!isGreater) abort();
|
if (!isGreater) abort();
|
if (!temp) abort();
|
if (!temp) abort();
|
}
|
}
|
|
|
int main (int argc, char * argv[])
|
int main (int argc, char * argv[])
|
{
|
{
|
ACE_UINT32 const mc_isoValue = 10000;
|
ACE_UINT32 const mc_isoValue = 10000;
|
ResourceBalanceType2 rbResourceBalanceType2(3, mc_isoValue, "ATM", "M");
|
ResourceBalanceType2 rbResourceBalanceType2(3, mc_isoValue, "ATM", "M");
|
}
|
}
|
|
|
// { dg-final { cleanup-coverage-files } }
|
// { dg-final { cleanup-coverage-files } }
|
|
|