summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/init15.C
blob: 022f2ef98079f03c03b9191de7291e1d2791e2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// Copyright (C) 2000 Free Software Foundation
// Contributed by Nathan Sidwell 21 June 2000 <nathan@codesourcery.com>

// Origin GNATS bug report 136 from
// language specific constants caused the backend's constant caching machinery
// to fall over.

struct A {
  const char *name;
  int reserved;
  int a;
  int b;
  void (A::*func)();
  void Fn ();
};

void Interpret() {
  struct A cmd_list =
    {"a",0,0, 0,&A::Fn}
  ;
}