1 // RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -verify %s -std=c++14
10 I
= 12; // expected-warning {{cannot refer to a non-static member from the handler of a constructor function try block}}
11 f(); // expected-warning {{cannot refer to a non-static member from the handler of a constructor function try block}}
27 I
= 12; // expected-warning {{cannot refer to a non-static member from the handler of a constructor function try block}}
28 f(); // expected-warning {{cannot refer to a non-static member from the handler of a constructor function try block}}
52 I
= 12; // expected-warning {{cannot refer to a non-static member from the handler of a destructor function try block}}
53 f(); // expected-warning {{cannot refer to a non-static member from the handler of a destructor function try block}}
92 try { // not a function-try-block