aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-exception-spec.cpp
blob: e6c3c757f012e882c77c6e834a6c15227147ef23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -fsyntax-only  %s

struct X { };

struct Y { };

void f() throw() { }

void g(int) throw(X) { }

void h() throw(X, Y) { }

class Class {
  void foo() throw (X, Y) { }
};

void (*fptr)() throw();