File: testBug104262.cc

package info (click to toggle)
clhep 2.4.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,084 kB
  • sloc: cpp: 45,279; sh: 1,343; perl: 28; makefile: 26
file content (21 lines) | stat: -rw-r--r-- 476 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// test for bug https://savannah.cern.ch/bugs/?104262
// problem reported when using g++ -D_GLIBCXX_DEBUG flag

#include "CLHEP/Matrix/Vector.h"

#include <iostream>

int main(int, char **) {

CLHEP::HepVector fXVector;
fXVector = CLHEP::HepVector(32);
std::cout << "fXVector, 1, 2 : " << fXVector(1) << ", " << fXVector(2) << std::endl;

fXVector(1)=99;
fXVector(31)=199;

std::cout << "fXVector, 1, 31 : " << fXVector(1) << ", " << fXVector(31) << std::endl;

return 0;
}