blob: 526db3739cf82aefa71f098bbb9c92721a4fd661 [file] [edit]
// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
// RUN: %clang_cc1 -fsyntax-only -ast-dump %s | FileCheck %s
// expected-no-diagnostics
struct Obj { int * __restrict myPtr[2]; };
void do_copy() {
Obj a, b;
a = b;
// CHECK-LABEL: CXXMethodDecl{{.*}} implicit used constexpr operator= 'Obj &(const Obj &) noexcept'
// CHECK-NEXT: ParmVarDecl
// CHECK-NEXT: CompoundStmt
// Make sure that this uses the for-loop in the AST rather than trying to do
// the early builtin_memcpy opt.
// CHECK-NEXT: ForStmt
}