]> granicus.if.org Git - clang/commitdiff
Tweak an expected-error to match the output. IMHO it is better to diagnose 'int ...
authorGabor Greif <ggreif@gmail.com>
Tue, 21 Oct 2008 11:46:36 +0000 (11:46 +0000)
committerGabor Greif <ggreif@gmail.com>
Tue, 21 Oct 2008 11:46:36 +0000 (11:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57901 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/decl-expr-ambiguity.cpp

index 72948e6c75536c9235c4ca82bee426251557456f..b2c3ea7b5ac799964bee204008de58e153fbaf79 100644 (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}}