summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bugs/900325_01.C
blob: f11ec189039d99126217c10e21064bdcaa0fc25b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// g++ 1.37.1 bug 900325_01

// g++ fails to generate errors for attempts to declare a formal argument to
// be of a void type.

// keywords: formal parameter, void type

typedef void __void;
typedef __void Void;

void function0 (void arg1) {	// ERROR - missed
}

void function1 (Void arg1) {	// ERROR - missed
}

int main () { return 0; }