brintos

brintos / llvm-project-archived public Read only

0
0
Text · 340 B · cef568c Raw
13 lines · cpp
1// REQUIRES: host-supports-jit2//3// RUN: cat %s | clang-repl | FileCheck %s4// RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s5 6struct box { box() = default; box(int *const data) : data{data} {} int *data{}; };7 8box foo() { box ret; ret = new int{}; return ret; }9 10extern "C" int printf(const char *, ...);11printf("good");12// CHECK: good13