summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/except/except.spec/p5-delayed.cpp
blob: 99c0e2de31a99d547913785bb8d00e7a39374a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -std=c++11 -verify %s -fexceptions -fcxx-exceptions

struct A { struct X { virtual ~X() throw(Y); }; struct Y : X {}; };
struct B { struct X { virtual void f() throw(Y); }; struct Y : X { void f() throw(Y); }; };
struct C { struct X { virtual void f() throw(Y); }; struct Y : X { void f() throw(); }; };
struct D { struct X { virtual void f() throw(Y); }; struct Y : X { void f() noexcept; }; };
struct E { struct Y; struct X { virtual Y &operator=(const Y&) throw(Y); }; struct Y : X {}; };
struct F {
  struct X {
    virtual void f() throw(Y); // expected-note {{here}}
  };
  struct Y : X {
    void f() throw(int); // expected-error {{more lax}}
  };
};
OpenPOWER on IntegriCloud