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