gcc/testsuite/g++.dg/pr103024.C
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-fnon-call-exceptions -fharden-compares -fsignaling-nans" } */ |
| 3 | |
| 4 | struct G4ErrorMatrix { |
| 5 | G4ErrorMatrix(int); |
| 6 | ~G4ErrorMatrix(); |
| 7 | }; |
| 8 | double PropagateError_charge; |
| 9 | void PropagateError() { |
| 10 | G4ErrorMatrix transf(0); |
| 11 | int field(PropagateError_charge && field); |
| 12 | } |