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 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: no-exceptions
51 template <class Catch
>
52 void catch_nullptr_test() {
66 // catch naked nullptrs
70 catch_nullptr_test
<int*>();
71 catch_nullptr_test
<int**>();
72 catch_nullptr_test
<int A::*>();
73 catch_nullptr_test
<const int A::*>();
74 catch_nullptr_test
<int A::**>();