Debian Codegraph @

gcc/testsuite/g++.dg/ubsan/pr63913.C

raw
1 // PR sanitizer/63913
2 // { dg-do compile }
3 // { dg-options "-fsanitize=bool -fnon-call-exceptions" }
4
5 struct B { B (); ~B (); };
6
7 double
8 foo (bool *x)
9 {
10 B b;
11 return *x;
12 }