Clang Project

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