1 // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify %s
3 // The object declared in an exception-declaration or, if the
4 // exception-declaration does not specify a name, a temporary (12.2)
5 // is copy-initialized (8.5) from the exception object.
14 ptr
= ip
; // expected-error{{incompatible pointer types assigning to 'float *' from 'int *'}}
19 ptr
= fp
; // expected-error{{incompatible pointer types assigning to 'int *' from 'float *'}}
25 } catch (X
<float>) { // expected-note{{instantiation}}
27 } catch (X
<int> xi
) { // expected-note{{instantiation}}
33 virtual void f() = 0; // expected-note{{pure virtual}}
38 } catch (Abstract
) { // expected-error{{variable type 'Abstract' is an abstract class}}