add comment about why valid
authorNathan Sidwell <nathan@gcc.gnu.org>
Tue, 2 Jan 2018 12:35:02 +0000 (12:35 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 2 Jan 2018 12:35:02 +0000 (12:35 +0000)
From-SVN: r256071

gcc/testsuite/g++.dg/cpp0x/constexpr-64462.C

index 8200f871057c978e48e90df4ab584e14100d484c..8cfd405f73bdd8b55c3a05e205ebf86cc71f3bfd 100644 (file)
@@ -6,5 +6,6 @@ int z;
 
 int main() {
   constexpr int& y = x;
+  // OK, 'y' is not ODR used
   [] { z = y; }();
 }