summaryrefslogtreecommitdiffstats
path: root/test/CXX/except/except.handle/p16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/except/except.handle/p16.cpp')
-rw-r--r--test/CXX/except/except.handle/p16.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/except/except.handle/p16.cpp b/test/CXX/except/except.handle/p16.cpp
index 87972f5..4950a2f 100644
--- a/test/CXX/except/except.handle/p16.cpp
+++ b/test/CXX/except/except.handle/p16.cpp
@@ -11,12 +11,12 @@ class X {
public:
X(const X<T> &) {
int *ip = 0;
- ptr = ip; // expected-error{{incompatible type assigning 'int *', expected 'float *'}}
+ ptr = ip; // expected-error{{assigning to 'float *' from incompatible type 'int *'}}
}
~X() {
float *fp = 0;
- ptr = fp; // expected-error{{incompatible type assigning 'float *', expected 'int *'}}
+ ptr = fp; // expected-error{{assigning to 'int *' from incompatible type 'float *'}}
}
};
OpenPOWER on IntegriCloud