diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-10-21 11:46:36 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-10-21 11:46:36 +0000 |
commit | 0fe706040795f24ad61c0ca436a0304fdce8fd6f (patch) | |
tree | 7517159cbbdcb126226c2b56be037a15980d5d86 | |
parent | 6f5f41c501d5a4546809ec4a2d39245b66e60408 (diff) |
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++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57901 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaCXX/decl-expr-ambiguity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/decl-expr-ambiguity.cpp b/test/SemaCXX/decl-expr-ambiguity.cpp index 72948e6c75..b2c3ea7b5a 100644 --- a/test/SemaCXX/decl-expr-ambiguity.cpp +++ b/test/SemaCXX/decl-expr-ambiguity.cpp @@ -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}} |