aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@gcc.gnu.org>2018-01-02 12:35:02 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2018-01-02 12:35:02 +0000
commit5344af273ac3d881fb480adc927c9ff64de959e7 (patch)
treeda9255fc26adbab24bac2542c13b62bb9e03e86f /gcc
parente8e3054e505a153e52aa3d8888bfc91610c006f7 (diff)
downloadgcc-5344af273ac3d881fb480adc927c9ff64de959e7.zip
gcc-5344af273ac3d881fb480adc927c9ff64de959e7.tar.gz
gcc-5344af273ac3d881fb480adc927c9ff64de959e7.tar.bz2
add comment about why valid
From-SVN: r256071
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/constexpr-64462.C1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-64462.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-64462.C
index 8200f87..8cfd405 100644
--- a/gcc/testsuite/g++.dg/cpp0x/constexpr-64462.C
+++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-64462.C
@@ -6,5 +6,6 @@ int z;
int main() {
constexpr int& y = x;
+ // OK, 'y' is not ODR used
[] { z = y; }();
}