Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/array1-2.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 |