Author: ggreif
Date: Tue Oct 21 06:46:36 2008
New Revision: 57901
URL: http://llvm.org/viewvc/llvm-project?rev=57901&view=rev
Log:
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++.
Modified:
cfe/trunk/test/SemaCXX/decl-expr-ambiguity.cpp
Modified: cfe/trunk/test/SemaCXX/decl-expr-ambiguity.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/decl-expr-ambiguity.cpp?rev=57901&r1=57900&r2=57901&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/decl-expr-ambiguity.cpp (original)
+++ cfe/trunk/test/SemaCXX/decl-expr-ambiguity.cpp Tue Oct 21 06:46:36 2008
@@ -19,7 +19,7 @@
(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}}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits