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 | 09a5cf89ca1ab7535d4f95b5fe99c9339625e46d (patch) | |
tree | 6f11503d350c709c1377e408d0a38cc67a30a809 | |
parent | 94844e2054e2e1aac911292cf041525f77725484 (diff) | |
download | bcm5719-llvm-09a5cf89ca1ab7535d4f95b5fe99c9339625e46d.tar.gz bcm5719-llvm-09a5cf89ca1ab7535d4f95b5fe99c9339625e46d.zip |
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
-rw-r--r-- | clang/test/SemaCXX/decl-expr-ambiguity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/decl-expr-ambiguity.cpp b/clang/test/SemaCXX/decl-expr-ambiguity.cpp index 72948e6c755..b2c3ea7b5ac 100644 --- a/clang/test/SemaCXX/decl-expr-ambiguity.cpp +++ b/clang/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}} |