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
* c-common.c (get_priority): Add check for
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
t29.C
blob
bcc94a38726a31282533bfbb96ffe46c29f9382b
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];
5
extern double d[99];
6
7
int foo (int ii) { return f (&i); } // causes abort
8
double foo (double dd) { return f (&d); }