(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
torture/
pr100925.C
// { dg-do compile }

struct QScopedPointerDeleter {
  static void cleanup(int *);
};
class QScopedPointer {
  typedef int *QScopedPointer::*RestrictedBool;

public:
  operator RestrictedBool() { return d ? nullptr : &QScopedPointer::d; }
  void reset() {
    if (d)
      QScopedPointerDeleter::cleanup(d);
  }
  int *d;
};
class DOpenGLPaintDevicePrivate {
public:
  QScopedPointer fbo;
} DOpenGLPaintDeviceresize_d;
void DOpenGLPaintDeviceresize() {
  if (DOpenGLPaintDeviceresize_d.fbo)
    DOpenGLPaintDeviceresize_d.fbo.reset();
}