diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-09-05 00:17:29 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-09-05 00:17:29 +0000 |
| commit | 24b89469acd5f386b0080f9baabaceda8e261314 (patch) | |
| tree | 47139176153360fb10a61387eb31a16671e51ae3 /clang/test/CXX/special/class.copy/p9.cpp | |
| parent | 9dd55103c1f2acc17cf7a2fab0b9b69a8f1ef70a (diff) | |
| download | bcm5719-llvm-24b89469acd5f386b0080f9baabaceda8e261314.tar.gz bcm5719-llvm-24b89469acd5f386b0080f9baabaceda8e261314.zip | |
'const std::type_info*' instead of 'std::type_info const*'
llvm-svn: 113092
Diffstat (limited to 'clang/test/CXX/special/class.copy/p9.cpp')
| -rw-r--r-- | clang/test/CXX/special/class.copy/p9.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CXX/special/class.copy/p9.cpp b/clang/test/CXX/special/class.copy/p9.cpp index d03794420e0..494b12fd790 100644 --- a/clang/test/CXX/special/class.copy/p9.cpp +++ b/clang/test/CXX/special/class.copy/p9.cpp @@ -37,8 +37,8 @@ void test_non_const_copy(const ImplicitNonConstCopy1 &cincc1, const ImplicitNonConstCopy2 &cincc2, const ImplicitNonConstCopy3 &cincc3, const ImplicitNonConstCopy4 &cincc4) { - (void)sizeof(ImplicitNonConstCopy1(cincc1)); // expected-error{{functional-style cast from 'ImplicitNonConstCopy1 const' to 'ImplicitNonConstCopy1' is not allowed}} - (void)sizeof(ImplicitNonConstCopy2(cincc2)); // expected-error{{functional-style cast from 'ImplicitNonConstCopy2 const' to 'ImplicitNonConstCopy2' is not allowed}} - (void)sizeof(ImplicitNonConstCopy3(cincc3)); // expected-error{{functional-style cast from 'ImplicitNonConstCopy3 const' to 'ImplicitNonConstCopy3' is not allowed}} - (void)sizeof(ImplicitNonConstCopy4(cincc4)); // expected-error{{functional-style cast from 'ImplicitNonConstCopy4 const' to 'ImplicitNonConstCopy4' is not allowed}} + (void)sizeof(ImplicitNonConstCopy1(cincc1)); // expected-error{{functional-style cast from 'const ImplicitNonConstCopy1' to 'ImplicitNonConstCopy1' is not allowed}} + (void)sizeof(ImplicitNonConstCopy2(cincc2)); // expected-error{{functional-style cast from 'const ImplicitNonConstCopy2' to 'ImplicitNonConstCopy2' is not allowed}} + (void)sizeof(ImplicitNonConstCopy3(cincc3)); // expected-error{{functional-style cast from 'const ImplicitNonConstCopy3' to 'ImplicitNonConstCopy3' is not allowed}} + (void)sizeof(ImplicitNonConstCopy4(cincc4)); // expected-error{{functional-style cast from 'const ImplicitNonConstCopy4' to 'ImplicitNonConstCopy4' is not allowed}} } |

