summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/cast1.C
blob: 2bc16f35231ce0428ff10d77318616f78fce4de2 (plain)
1
2
3
4
5
6
7
8
// { dg-do assemble  }
// Bug: g++ fails to grok functional casts in all situations.

class A  {
public:
  typedef int B;
  static B foo() { return B(1); } // { dg-bogus "" } 
};