aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/typedef9.C
blob: 7788f781fb6bb7630461c8ff46de59ebc1660d05 (plain)
1
2
3
4
5
6
7
8
// PR c++/38794
// { dg-do compile }

typedef void foo () {}	// { dg-error "invalid function declaration" }
struct S
{
  typedef int bar (void) { return 0; } // { dg-error "invalid member function declaration" }
};