1// Contributed by Iain Sandoe <iain@codesourcery.com>, December 2014. */ 2// { dg-do compile } 3// { dg-options "-std=c++11" } 4 5extern "C" { 6 int printf (const char *,...); 7} 8 9int main () 10{ 11 auto f = [] (const char *msg) -> int { printf("%s", msg); return 0; }; 12 return f("Some test\n"); 13} 14