brintos

brintos / llvm-project-archived public Read only

0
0
Text · 290 B · 0ea19cf Raw
16 lines · cpp
1#include <memory>2 3struct Point {4  int x, y;5};6 7int main() {8  Point pt = { 1, 2 };9  Point points[] = {{1010,2020}, {3030,4040}, {5050,6060}};10  Point *pt_ptr = &points[1];11  Point &pt_ref = pt;12  std::shared_ptr<Point> pt_sp(new Point{111,222});13  return 0; // Set a breakpoint here14}15 16