blob: 275a1c4864320f58aaf0f4acd98e307b71e5ad25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* RUN: clang -fsyntax-only %s 2>&1 | grep '6 diagnostics'
*/
typedef void Void;
void foo() {
int X;
X = sizeof(int (void a));
X = sizeof(int (int, void));
X = sizeof(int (void, ...));
X = sizeof(int (Void a));
X = sizeof(int (int, Void));
X = sizeof(int (Void, ...));
// Accept these.
X = sizeof(int (void));
X = sizeof(int (Void));
}
// this is ok.
void bar(Void) {
}
|