Tweak an expected-error to match the output. IMHO it is better to diagnose 'int (void)' because it has the same meaning in C and C++.

llvm-svn: 57901
This commit is contained in:
Gabor Greif 2008-10-21 11:46:36 +00:00
parent 94844e2054
commit 09a5cf89ca
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ void f() {
(int(1)); // expected-warning {{expression result unused}}
// type-id
(int())1; // expected-error {{used type 'int ()' where arithmetic or pointer type is required}}
(int())1; // expected-error {{used type 'int (void)' where arithmetic or pointer type is required}}
// Declarations.
int fd(T(a)); // expected-warning {{parentheses were disambiguated as a function declarator}}