]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/testsuite/g++.dg/cpp2a/volatile5.C
c++: Implement P2327R1 - De-deprecating volatile compound operations
[gcc.git] / gcc / testsuite / g++.dg / cpp2a / volatile5.C
index 1f9d23845b42d21d1e5acb46adf3caa07444fb75..3684be9837ea08a4523c64052bbbb2966c032bb1 100644 (file)
@@ -8,8 +8,8 @@ f (bool b)
 {
   (b ? x : y) = 1;
   (b ? x : y) += 1; // { dg-warning "compound assignment" "" { target c++20 } }
-  z = (b ? x : y) = 1; // { dg-warning "using value of simple assignment" "" { target c++20 } }
-  ((z = 2) ? x : y) = 1; // { dg-warning "using value of simple assignment" "" { target c++20 } }
-  (b ? (x = 2) : y) = 1; // { dg-warning "using value of simple assignment" "" { target c++20 } }
-  (b ? x : (y = 5)) = 1; // { dg-warning "using value of simple assignment" "" { target c++20 } }
+  z = (b ? x : y) = 1; // { dg-warning "using value of assignment" "" { target c++20 } }
+  ((z = 2) ? x : y) = 1; // { dg-warning "using value of assignment" "" { target c++20 } }
+  (b ? (x = 2) : y) = 1; // { dg-warning "using value of assignment" "" { target c++20 } }
+  (b ? x : (y = 5)) = 1; // { dg-warning "using value of assignment" "" { target c++20 } }
 }
This page took 0.033777 seconds and 5 git commands to generate.