diff options
Diffstat (limited to 'clang/test/CXX/class/class.local/p2.cpp')
| -rw-r--r-- | clang/test/CXX/class/class.local/p2.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/CXX/class/class.local/p2.cpp b/clang/test/CXX/class/class.local/p2.cpp index a1fed53b3c0..56ff1e53a49 100644 --- a/clang/test/CXX/class/class.local/p2.cpp +++ b/clang/test/CXX/class/class.local/p2.cpp @@ -7,6 +7,5 @@ void f() { B b; - A *a = &b; // expected-error{{conversion from 'struct B' to inaccessible base class 'struct A'}} \ - expected-error{{incompatible type initializing 'struct B *', expected 'struct A *'}} + A *a = &b; // expected-error{{conversion from 'struct B' to inaccessible base class 'struct A'}} } |

