1 // PR sanitizer/86406
2 // { dg-do compile }
3 // { dg-options "-fcompare-debug -fsanitize=undefined -g -O1" }
4 
5 typedef enum { } cmd_status;
6 class ECell;
7 class ECell_const_ptr { };
8 class ECell_ptr
9 {
10   ECell *mp_element;
getPointer()11   ECell *getPointer () const { return mp_element; }
12 public:
ECell_const_ptr()13   operator  ECell_const_ptr () const { return ECell_const_ptr(); }
14 };
15 
16 extern ECell_ptr NULL_CELL;
17 class VwUI_2DCellLayerView;
18 class view_cell_layoutImpl
19 {
20   cmd_status handleChangeFlags (VwUI_2DCellLayerView *
21                                       p_ui_celllayerview,
22                                       ECell_const_ptr p_peekCell);
23   cmd_status openCellLayoutView ();
24 };
25 
26 cmd_status
openCellLayoutView()27 view_cell_layoutImpl::openCellLayoutView ()
28 {
29   ECell_const_ptr pcell = NULL_CELL;
30   VwUI_2DCellLayerView *p_user_interface;
31   return handleChangeFlags (p_user_interface, pcell);
32   ;
33 }
34