| 1 | // 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 | |
| 6 | class A { |
| 7 | A(const A &); |
| 8 | }; |
| 9 | typedef void (*fptr_t)(A); |
| 10 | fptr_t fn1() { return [](A) {}; } |
| 11 | |
| 12 |