aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/cast3.C
blob: 5d599805aa309fdbd9ac0385e24daf9ab2c90544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PRMS Id: 7088
// Build don't link:

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

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