install.fairie/dotfiles/.vim/plugged/YouCompleteMe/test/testdata/cpp/completion.cc
Git E2E Dev Test Username 1dcbe335e1 git subrepo clone (merge) https://github.com/ycm-core/YouCompleteMe.git ./dotfiles/.vim/plugged/YouCompleteMe
subrepo:
  subdir:   "dotfiles/.vim/plugged/YouCompleteMe"
  merged:   "99ccab251"
upstream:
  origin:   "https://github.com/ycm-core/YouCompleteMe.git"
  branch:   "master"
  commit:   "99ccab251"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:46 -04:00

31 lines
507 B
C++

struct PointInTime
{
int point_before_time;
double age_of_universe;
char lifetime; // nobody will live > 128 years
};
struct Line
{
enum { RED_AND_YELLOW, PINK_AND_GREEN } colourOfLine;
double lengthOfLine;
};
struct PointInTimeLine
{
PointInTime point;
Line line;
};
static void what_is_the( PointInTimeLine* p )
{
p->line.colourOfLine = Line::
p->line.colourOfLine = Line::PINK_AND_GREEN;
}
static void draw_a( Line l )
{
PointInTimeLine p = { .line = l };
what_is_the( &p );
}