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
tweak
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb106.C
1
// Skip if not native
2
// Special g++ Options: -O2 -fPIC
3
// Build don't link:
4
struct T
5
{
6
char* f1;
7
int f2;
8
};
9
10
void f(T*);
11
int g();
12
13
extern char a1[];
14
15
inline int m(int a, int b) {return b < a ? 2 : 1;}
16
17
void
18
h()
19
{
20
T a[10];
21
int i(0);
22
23
bool c;
24
if (c)
25
{
26
a[i++].f1 = "asf";
27
f(a);
28
i = 0;
29
}
30
31
a[i].f1 = &a1[1];
32
a[i].f2 = m(1, g());
33
i++;
34
35
a[i].f1 = "zxv";
36
a[i].f2 = 0;
37
}