2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr70610-3.C
blob4be458cca59a284b45618a4aa5c717a5f8e2cade
1 // PR c++/70610
2 // { dg-do link }
4 void bar (const int &, int &);
5 void bar (int &, const int &);
6 void bar (const int &, const int &) { }
8 int a, b;
10 template <typename T>
11 void
12 foo ()
14   bar (a + 1, b + 2);
17 int
18 main ()
20   foo<int> ();