Implement range-based for-statements.
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pr36954.C
blob92cea2f38764a7fb3f57a1a4b7cb5b8e0a162ba4
1 // PR c++/36954
2 // { dg-do compile }
3 // { dg-options "-Wlogical-op -Wextra -Wall" }
5 template<class C> void Test()
7   if ((1 == 2) || (true)) { 
8   }
10   if ((1 == 2) || (!false)) {
11   }
13   if (false || true) {
14   }
19 int main() {
20   if ((1 == 2) || (true)) {
21   }