summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash42.C
blob: a6d9e61495912fe3f1b8d9d1487bce55bf9fd97a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// { dg-options "-g" }
// 
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 25 Jul 2001 <nathan@codesourcery.com>

// Bug 3152. Using a typedef to declare a function used an unset
// global variable, last_function_parms.

struct actor 
{
  typedef bool (operation)();

  operation a;
  operation b;
  operation c;
};