1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Can you have a catch clause of array type that catches anything?
10 // UNSUPPORTED: no-exceptions
18 typedef void Function();
21 throw f
; // converts to void (*)()
24 catch (Function b
) // equivalent to void (*)()