Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / g++.dg / template / array19.C
blob79abf47c17a89fe8dde78b4cc7d062df956cce81
1 // PR c++/33553
2 // { dg-do compile }
4 template <class T> struct S { static const int sz = 2; };
5 template <class T> struct U { enum { sz = 2 }; };
7 template <class R>
8 struct P
10   template <class T> void bar (int (&x)[S<T>::sz]);
11   template <class T> void baz (int (&x)[U<T>::sz]);
14 P<int> p;
16 void
17 foo (void)
19   int x[2];
20   p.bar<int> (x);
21   p.baz<int> (x);