8sa1-gcc/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-70383.C
Paolo Carlini debc8f4a0c re PR c++/70383 (Bogus error when attempting to capture a reference to function by copy)
2017-11-16  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/70383
	* g++.dg/cpp0x/lambda/lambda-70383.C: New.

From-SVN: r254808
2017-11-16 10:36:51 +00:00

9 lines
123 B
C

// PR c++/70383
// { dg-do compile { target c++11 } }
void meow() {
void purr();
void (&f)() = purr;
[f]{};
}