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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
t30.C
blob
45da04c63ad7eceb16eb19dc549ec2397fbbe8bc
1
// { dg-do assemble }
2
3
template <class X, int n> X f (auto X (*x)[n]) { return (*x)[n/2]; }
4
extern int i[30], i2[33];
5
extern double d[99];
6
7
int foo (int ii) { return f (&i) + f(&i2); } // causes abort
8
double foo (double dd) { return f (&d); }