blob: cef568c78663e60440d13f4218755dc1e23efba5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// REQUIRES: host-supports-jit
//
// RUN: cat %s | clang-repl | FileCheck %s
// RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s
struct box { box() = default; box(int *const data) : data{data} {} int *data{}; };
box foo() { box ret; ret = new int{}; return ret; }
extern "C" int printf(const char *, ...);
printf("good");
// CHECK: good
|