Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
typedef9.C
blob: 2e7d672434b360343ffce807b2a9db7e5175851d [
file
] [
log
] [
blame
]
// PR c++/38794
// { dg-do compile }
typedef
void
foo
()
{}
// { dg-error "14:typedef may not be a function definition" }
struct
S
{
typedef
int
bar
(
void
)
{
return
0
;
}
// { dg-error "15:typedef may not be a member function definition" }
};