diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-12-17 16:19:15 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-12-17 16:19:15 +0000 |
commit | 3eb1c546857087b5e1377d172f37868ade960664 (patch) | |
tree | 81a9dea76da3e817c06734132d1fe7017a82347b /test/SemaCXX/const-cast.cpp | |
parent | 5605fdf94cef9e16a9a168b5fb66a3395ba9df42 (diff) | |
download | clang-3eb1c546857087b5e1377d172f37868ade960664.tar.gz |
Removed the warning
warning: statement was disambiguated as declaration
because it is currently firing in cases where the declaration would
not actually parse as a statement. We'd love to bring this warning
back if we can make it more accurate.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/const-cast.cpp')
-rw-r--r-- | test/SemaCXX/const-cast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/const-cast.cpp b/test/SemaCXX/const-cast.cpp index bc3908fd5d..03a0e908eb 100644 --- a/test/SemaCXX/const-cast.cpp +++ b/test/SemaCXX/const-cast.cpp @@ -27,7 +27,7 @@ char ***good_const_cast_test(ccvpcvpp var) // Drop reference. Intentionally without qualifier change. char *** var5 = const_cast<cppp>(var4); const int ar[100] = {0}; - int (&rar)[100] = const_cast<iarr>(ar); // expected-warning {{statement was disambiguated as declaration}} expected-error {{const_cast from 'int const [100]' to 'iarr' is not allowed}} + int (&rar)[100] = const_cast<iarr>(ar); // expected-error {{const_cast from 'int const [100]' to 'iarr' is not allowed}} // Array decay. Intentionally without qualifier change. int *pi = const_cast<int*>(ar); f fp = 0; |