OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [gdb/] [testsuite/] [gdb.cp/] [pr10687.cc] - Blame information for rev 330

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
class vec2
2
{
3
  public:
4
    vec2() { _v[0] = _v[1] = 0; }
5
    vec2(int x, int y) { _v[0] = x; _v[1] = y; }
6
    static vec2 axis[2];
7
    static vec2 axis6[6];
8
  private:
9
    int _v[2];
10
};
11
 
12
vec2 vec2::axis[2] = { vec2(1,0), vec2(0,1) };
13
vec2 vec2::axis6[6] = {
14
  vec2(1,0), vec2(0,1),
15
  vec2(2,0), vec2(0,2),
16
  vec2(3,0), vec2(0,3)
17
};
18
 
19
int main(int argc, char*argv[])
20
{
21
  vec2 a;
22
 
23
  return 0;  // marker
24
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.