summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash63.C
blob: 89685fcaeb5496e2fb0659dd15209a90377e64d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// GROUPS passed old-abort
class String
   {
 public:
   String (const char *str);
   String (const String&);
   };

class UnitList 
   {
 public:
   UnitList (...);
   };

UnitList unit_list (String("keV")); // { dg-error "" } cannot pass non-pod