repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
PR rtl-optimization/87918
[official-gcc.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
lambda-1.mm
blob
050d68dff284e5449bb8057c4236dffd3ff2bddc
1
// Contributed by Iain Sandoe <iain@codesourcery.com>, December 2014. */
2
// { dg-do compile }
3
// { dg-options "-std=c++11" }
4
5
extern "C" {
6
int printf (const char *,...);
7
}
8
9
int main ()
10
{
11
auto f = [] (const char *msg) -> int { printf("%s", msg); return 0; };
12
return f("Some test\n");
13
}