Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / ubsan / pr86406.C
blob1a0f4786a0f5737375429a0560313629e4774c95
1 // PR sanitizer/86406
2 // { dg-do compile }
3 // { dg-options "-fcompare-debug -fsanitize=undefined -g -O1" }
5 typedef enum { } cmd_status;
6 class ECell;
7 class ECell_const_ptr { };
8 class ECell_ptr
10   ECell *mp_element;
11   ECell *getPointer () const { return mp_element; }
12 public:
13   operator  ECell_const_ptr () const { return ECell_const_ptr(); }
16 extern ECell_ptr NULL_CELL;
17 class VwUI_2DCellLayerView;
18 class view_cell_layoutImpl
20   cmd_status handleChangeFlags (VwUI_2DCellLayerView *
21                                       p_ui_celllayerview,
22                                       ECell_const_ptr p_peekCell);
23   cmd_status openCellLayoutView ();
26 cmd_status
27 view_cell_layoutImpl::openCellLayoutView ()
29   ECell_const_ptr pcell = NULL_CELL;
30   VwUI_2DCellLayerView *p_user_interface;
31   return handleChangeFlags (p_user_interface, pcell);
32   ;