diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-03 02:06:50 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-06-03 02:06:50 +0000 |
commit | 7c94c4bb7b875dc1a2b23f77f1ed8013cf94abdb (patch) | |
tree | e798d0a8ccc99534c2b45b4b512084b9f5bcbc16 /test/SemaCXX/static-cast.cpp | |
parent | 2cc390e62014a9587fe423efdd68cfa45543d804 (diff) |
Use "()" instead of "(void)" when pretty-printing a parameter-less function type for C++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/static-cast.cpp')
-rw-r--r-- | test/SemaCXX/static-cast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/static-cast.cpp b/test/SemaCXX/static-cast.cpp index 8399e77085..b5c515d5e1 100644 --- a/test/SemaCXX/static-cast.cpp +++ b/test/SemaCXX/static-cast.cpp @@ -115,7 +115,7 @@ void t_529_10() // Bad code below (void)static_cast<int*>((const void*)0); // expected-error {{static_cast from 'void const *' to 'int *' casts away constness}} - (void)static_cast<void (*)()>((void*)0); // expected-error {{static_cast from 'void *' to 'void (*)(void)' is not allowed}} + (void)static_cast<void (*)()>((void*)0); // expected-error {{static_cast from 'void *' to 'void (*)()' is not allowed}} } // Member pointer upcast. |