ec31cde594
* cp-valprint.c (global): Adding new static array recursion detection obstack. (cp_print_value_fields, cp_print_static_field): Added new static array recursion detection code. * gdb.cp/Makefile.in (EXECUTABLES): Added pr10687 * gdb.cp/pr10687.cc: New file. * gdb.cp/pr10687.exp: New file
24 lines
406 B
C++
24 lines
406 B
C++
class vec2
|
|
{
|
|
public:
|
|
vec2() { _v[0] = _v[1] = 0; }
|
|
vec2(int x, int y) { _v[0] = x; _v[1] = y; }
|
|
static vec2 axis[2];
|
|
static vec2 axis6[6];
|
|
private:
|
|
int _v[2];
|
|
};
|
|
|
|
vec2 vec2::axis[2] = { vec2(1,0), vec2(0,1) };
|
|
vec2 vec2::axis6[6] = {
|
|
vec2(1,0), vec2(0,1),
|
|
vec2(2,0), vec2(0,2),
|
|
vec2(3,0), vec2(0,3)
|
|
};
|
|
|
|
int main(int argc, char*argv[])
|
|
{
|
|
vec2 a;
|
|
|
|
return 0; // marker
|
|
}
|