blob: ac85ee175268b39f0787153520c963b5e401c8be [file] [log] [blame]
Reid Kleckner25b56022018-12-12 23:46:06 +00001// RUN: not %clang_cc1 -triple i686-windows-msvc -emit-llvm -o /dev/null %s 2>&1 | FileCheck %s
2
3// PR28299
4// CHECK: error: cannot compile this forwarded non-trivially copyable parameter yet
5
6class A {
7 A(const A &);
8};
9typedef void (*fptr_t)(A);
10fptr_t fn1() { return [](A) {}; }
11