OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.target/i386/pr37843-4.c: Allow for leading underscores on
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr45709.C
1
// { dg-do compile }
2
3
struct Region {
4
int storage[4];
5
int count;
6
};
7
static inline Region subtract(int lhs)
8
{
9
Region reg;
10
int* storage = reg.storage;
11
if (lhs > 0)
12
storage++;
13
reg.count = storage - reg.storage;
14
return reg;
15
}
16
void bar(int a)
17
{
18
const Region copyBack(subtract(a));
19
}