Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wsign-compare-9.C
blobbf3514c40acf9ab05efb8fca6ef13d2d4cbd55e8
1 // PR c++/90691
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options -Wsign-compare }
5 struct S {
6   int a;
8   constexpr S();
9   explicit constexpr S(int a_) : a(a_) {}
12 constexpr S b = S(12);
14 template <const S& e>
15 bool c(unsigned int d) {
16   return d >= e.a;
19 bool test(unsigned int d);
20 bool test(unsigned int d) {
21     return c<b>(d);