blob: ce898abfcf1d1bd5a942d52e322c04343adc9a2c [file] [log] [blame]
// { dg-do compile { target c++11 } }
struct A
{
const int *p[2];
};
constexpr const int * f(const int *p) { return p; }
int main()
{
constexpr int i = 42;
constexpr int j = *&i; // OK
constexpr int k = *A{{&i}}.p[0]; // OK
constexpr int l = *f(&i); // OK
}