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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
array1-2.C
blob
7214517b3c643624e10dc744cbe715a3824d3b1f
1
// { dg-do compile }
2
// { dg-options "-fabi-version=2" }
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