aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/lambda-as-default-parameter.cpp
blob: 1f07a7f5644b7ca9ac4816e58b0b4bd8391e2a77 (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s

struct a; // expected-note {{forward declaration of 'a'}} \
             expected-note {{forward declaration of 'a'}}
void b(a c = [] { return c; }); // expected-error {{initialization of incomplete type 'a'}} \
                                   expected-error {{variable has incomplete type 'a'}}