js/src/gdb/tests/test-prettyprinters.cpp

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 #include "gdb-tests.h"
michael@0 2
michael@0 3 typedef int A;
michael@0 4 typedef A B;
michael@0 5
michael@0 6 class C { };
michael@0 7 class D { };
michael@0 8 typedef C C_;
michael@0 9 typedef D D_;
michael@0 10 class E: C, D { };
michael@0 11 typedef E E_;
michael@0 12 class F: C_, D_ { };
michael@0 13 class G { };
michael@0 14 class H: F, G { };
michael@0 15
michael@0 16 FRAGMENT(prettyprinters, implemented_types) {
michael@0 17 int i;
michael@0 18 A a;
michael@0 19 B b;
michael@0 20 C c;
michael@0 21 C_ c_;
michael@0 22 E e;
michael@0 23 E_ e_;
michael@0 24 F f;
michael@0 25 H h;
michael@0 26
michael@0 27 breakpoint();
michael@0 28
michael@0 29 (void) i;
michael@0 30 (void) a;
michael@0 31 (void) b;
michael@0 32 (void) c;
michael@0 33 (void) c_;
michael@0 34 (void) e;
michael@0 35 (void) e_;
michael@0 36 (void) f;
michael@0 37 (void) h;
michael@0 38 }

mercurial