2007-10-11 08:18:28 +08:00
|
|
|
/* RUN: clang -fsyntax-only %s 2>&1 | grep '6 diagnostics'
|
2006-12-03 10:43:54 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
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));
|
|
|
|
}
|
|
|
|
|