/* test case for which-func-mode (GJK 2009-04-28) Tested against the following revision: Repository revision: 1.26 /cvsroot/emacs/emacs/lisp/progmodes/which-func.el,v The imenu--index-alist variable looks like this: (("Class" ("structA" . #) ("structB" . #)) ("funcA" . #) ("funcB" . #)) Because of the submenu, the overall items are not in order. */ struct structA { int i; }; void funcA() { // here the modeline will still show "structA" dummy; } struct structB { int i; }; void funcB() { dummy; }