3 // { dg-options "-fnon-call-exceptions -fprofile-arcs" }
7 typedef unsigned long ACE_UINT32;
8 extern "C" void abort();
10 static ACE_UINT32 const msc_maxCurrencyID = 9999;
12 class ResourceBalanceType2
15 explicit ResourceBalanceType2(
16 ACE_UINT32 resourceBalanceTypeID,
18 const std::string& rc_shortName,
19 const std::string& rc_symbol
22 const ACE_UINT32 mc_resBalTypeID;
23 const ACE_UINT32 mc_isoValue;
24 const std::string mc_shortName;
25 const std::string mc_symbol;
30 ResourceBalanceType2::ResourceBalanceType2(
31 ACE_UINT32 resourceBalanceTypeID,
33 const std::string& rc_shortName,
34 const std::string& rc_symbol)
35 : mc_resBalTypeID(resourceBalanceTypeID),
36 mc_isoValue(isoValue),
37 mc_shortName(rc_shortName),
40 bool isGreater = (mc_isoValue > msc_maxCurrencyID);
42 bool temp = mc_isoValue > msc_maxCurrencyID;
43 if (!isGreater) abort();
47 int main (int argc, char * argv[])
49 ACE_UINT32 const mc_isoValue = 10000;
50 ResourceBalanceType2 rbResourceBalanceType2(3, mc_isoValue, "ATM", "M");
53 // { dg-final { cleanup-coverage-files } }