summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/cast3.C
blob: fa347428882b027cfe43806ba88cadc06fca837e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// PRMS Id: 7088

struct string
{
  int length () const;
  string (string &);
  string (char * = 0);
  int operator [] (int);
  ~string ();
};

void _cook(const   string     raw, bool for_postscript)
{
  unsigned char c = (unsigned) ((string &)raw)[1];
}