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
/
array4.C
blob
0bd580af3e0e3853a20255cc455cd2a25650005d
1
// { dg-do assemble }
2
// Test to make sure that the array bounds are treated as an expression
3
// in template parm substitution.
4
5
// Written by Jason Merrill <jason@cygnus.com>
6
7
8
template <class T> void f (T t) { int ar[sizeof (T)]; }
9
10
int
11
main ()
12
{
13
f (1);
14
}