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

int i = 42;
constexpr int *p = &i;
constexpr int const *const *q = &p;
constexpr int const *r = *q;