gcc/testsuite/g++.dg/analyzer/pr94011.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | // { dg-additional-options "-O1 -Wno-analyzer-use-of-uninitialized-value" } |
| 3 | |
| 4 | template <typename DV> DV |
| 5 | vu (DV j4) |
| 6 | { |
| 7 | return [j4] () { return j4 () ? j4 : throw j4 (); } (); |
| 8 | } |
| 9 | |
| 10 | void |
| 11 | foo () |
| 12 | { |
| 13 | auto n1 = [] { return nullptr; }; |
| 14 | |
| 15 | vu (n1); |
| 16 | } |