summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/register1.C
blob: 3be2e652502fa10675a9389875ec8a7d10fdb2cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/23839

class C
{
  int i;
public:
  C(int j) : i(j) { }
  operator int() { return i; }
};

C f (register C x)
{
  return x + 31;
}