Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / template / ttp15.C
blob5bb285eb556c052b1b7b1ac07929d7da3233045d
1 struct Dense {
2   static const unsigned int dim = 1;
3 };
5 template <template <typename> class View,
6           typename Block>
7 void operator+(float, View<Block> const&);
9 template <typename Block,
10           unsigned int Dim = Block::dim>
11 struct Lvalue_proxy {
12   operator float() const;
15 void
16 test_1d (void)
18   Lvalue_proxy<Dense> p;
19   float b;
20   b + p;