1 /* PR c++/95984 - Internal compiler error: Error reporting routines re-entered
2 in -Wnonnull on a variadic lambda
3 PR c++/missing -Wnonnull passing nullptr to a nonnull variadic lambda
4 { dg-do compile { target c++14 } }
5 { dg-options "-Wall" } */
11 // This also triggered the ICE.
12 return [](auto...) { return 0; }; // { dg-bogus "\\\[-Wnonnull" }
16 __attribute__ ((nonnull)) void f (int, ...);
19 f (1, nullptr); // { dg-warning "\\\[-Wnonnull" }
22 template <class T> void g (T t)
24 t (1, nullptr); // { dg-warning "\\\[-Wnonnull" }
29 g ([](int, auto...) __attribute__ ((nonnull)) { });
32 template <class T> __attribute__ ((nonnull)) void h (T);
36 h (nullptr); // { dg-warning "\\\[-Wnonnull" }