summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/access-base-class.cpp
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2010-03-10 17:45:58 +0000
committerrdivacky <rdivacky@FreeBSD.org>2010-03-10 17:45:58 +0000
commit27c39af73c0d7d0b97e57b3a905040d4cefc9708 (patch)
tree56c1dd85a159948815817b5a90bedb39cf9ad105 /test/SemaCXX/access-base-class.cpp
parentd2e6cf1d1c6468396ec057119c32aa58b1ee5ac9 (diff)
downloadFreeBSD-src-27c39af73c0d7d0b97e57b3a905040d4cefc9708.zip
FreeBSD-src-27c39af73c0d7d0b97e57b3a905040d4cefc9708.tar.gz
Update clang to r98164.
Diffstat (limited to 'test/SemaCXX/access-base-class.cpp')
-rw-r--r--test/SemaCXX/access-base-class.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaCXX/access-base-class.cpp b/test/SemaCXX/access-base-class.cpp
index d0b0fb8..eeb5f1c 100644
--- a/test/SemaCXX/access-base-class.cpp
+++ b/test/SemaCXX/access-base-class.cpp
@@ -5,7 +5,7 @@ class A { };
class B : private A { }; // expected-note {{declared private here}}
void f(B* b) {
- A *a = b; // expected-error{{cannot cast 'class T1::B' to its private base class 'class T1::A'}}
+ A *a = b; // expected-error{{cannot cast 'T1::B' to its private base class 'T1::A'}}
}
}
@@ -16,7 +16,7 @@ class A { };
class B : A { }; // expected-note {{implicitly declared private here}}
void f(B* b) {
- A *a = b; // expected-error {{cannot cast 'class T2::B' to its private base class 'class T2::A'}}
+ A *a = b; // expected-error {{cannot cast 'T2::B' to its private base class 'T2::A'}}
}
}
@@ -69,7 +69,7 @@ namespace T6 {
class C : public B {
void f(C *c) {
- A* a = c; // expected-error {{cannot cast 'class T6::C' to its private base class 'class T6::A'}}
+ A* a = c; // expected-error {{cannot cast 'T6::C' to its private base class 'T6::A'}}
}
};
OpenPOWER on IntegriCloud