blob: 36c60077ce1279bdd4566c7f6c953ffab0a0db59 [file] [log] [blame]
// PR sanitizer/66190
// { dg-do compile }
// { dg-options "-fsanitize=null -std=c++11" }
class A {
public:
void fn1 (int);
};
class G {
~G ();
A t;
virtual void fn2 () {
static int a;
static int &b = a;
static int &c (a);
static int &d {a};
t.fn1 (b);
}
};
G ::~G () {}