brintos

brintos / llvm-project-archived public Read only

0
0
Text · 174 B · 13479eb Raw
9 lines · cpp
1#include <memory>2 3int main(int argc, char **argv) {4  std::shared_ptr<int> s(new int);5  *s = 3;6  std::weak_ptr<int> w = s;7  return *s; // Set break point at this line.8}9