libstdc++: Ensure std::variant relops convert to bool [PR115145]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / pr57644.C
blobdd67a3bd2d178f12b55e97a6d40e8e2e33607902
1 // { dg-do compile { target c++14 } }
3 typedef unsigned uint32_t __attribute__((mode (__SI__)));
5 struct Foo
7   uint32_t i: 32;
8 };
10 int
11 main()
13   Foo f{};
14   return f.i;