summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-ref10.C
blob: 925ac4eb2e44953556db1f9ffe27c6dd3575c498 (plain)
1
2
3
4
5
// { dg-do compile { target c++11 } }

int &&r = 42;
static_assert (r, "");		// { dg-error "temporary" }
// { dg-prune-output "assert" }