aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ubsan/pr63913.C
blob: 34dceb4d844160bddf16cdd82fa4f7058eba3ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR sanitizer/63913
// { dg-do compile }
// { dg-options "-fsanitize=bool -fnon-call-exceptions" }

struct B { B (); ~B (); };

double
foo (bool *x)
{
  B b;
  return *x;
}