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 | b1d51aa18afd6c0dc0db668117d5374d9337b361 (patch) | |
| tree | b241d70ebef62e37f9f8311e6a30a1a0893de220 /clang/test/SemaCXX/static-cast.cpp | |
| parent | fc262babc3c0535f33bcd635e1931b07aeee4e23 (diff) | |
| download | bcm5719-llvm-b1d51aa18afd6c0dc0db668117d5374d9337b361.tar.gz bcm5719-llvm-b1d51aa18afd6c0dc0db668117d5374d9337b361.zip | |
Use "()" instead of "(void)" when pretty-printing a parameter-less function type for C++.
llvm-svn: 72747
Diffstat (limited to 'clang/test/SemaCXX/static-cast.cpp')
| -rw-r--r-- | clang/test/SemaCXX/static-cast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/static-cast.cpp b/clang/test/SemaCXX/static-cast.cpp index 8399e77085b..b5c515d5e16 100644 --- a/clang/test/SemaCXX/static-cast.cpp +++ b/clang/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. |

