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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
array1-1.C
blob
97fe7cde25d5eeabbb4697570c8083ddbe0abb9c
1
// { dg-do compile }
2
// { dg-options "-fabi-version=1" }
3
4
// Contributed by Nathan Sidwell 22 Dec 2003 <nathan@codesourcery.com>
5
// Origin: Roger Sayle <roger@eyesopen.com>
6
7
// PR c++/12774 Array domains compared unequal
8
9
void Foo(double r[3][3])
10
{
11
}
12
13
void Baz()
14
{
15
double m[3][3];
16
Foo(m);
17
}
18
19
template <class T>
20
void Bar()
21
{
22
double m[3][3];
23
Foo(m);
24
}
25
26
int main()
27
{
28
Baz();
29
Bar<int>();
30
return 0;
31
}
32