Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Interpreter / assigment-with-implicit-ctor.cpp
blob24cea8ec1a4b2e5d22d69c2269bb73507da63308
1 // REQUIRES: host-supports-jit
2 // UNSUPPORTED: system-aix
3 //
4 // RUN: cat %s | clang-repl | FileCheck %s
5 // RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s
7 struct box { box() = default; box(int *const data) : data{data} {} int *data{}; };
9 box foo() { box ret; ret = new int{}; return ret; }
11 extern "C" int printf(const char *, ...);
12 printf("good");
13 // CHECK: good