repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
graphite
/
pr42130.C
blob
ee31abad0ee014b6a4e6d7af456482004abff411
1
/* { dg-options "-O2 -fgraphite-identity -fno-tree-ch" } */
2
#include <vector>
3
4
using std::vector;
5
6
vector<unsigned> & __attribute__((noinline, noclone)) foo(unsigned n)
7
{
8
vector<unsigned> *vv = new vector<unsigned>(n, 0u);
9
return *vv;
10
}
11
12
int main()
13
{
14
foo(0);
15
return 0;
16
}
17
18
/* { dg-do run } */
19