* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-deref.C
blobce898abfcf1d1bd5a942d52e322c04343adc9a2c
1 // { dg-do compile { target c++11 } }
3 struct A
5   const int *p[2];
6 };
8 constexpr const int * f(const int *p) { return p; }
10 int main()
12   constexpr int i = 42;
13   constexpr int j = *&i;           // OK
14   constexpr int k = *A{{&i}}.p[0]; // OK
15   constexpr int l = *f(&i);        // OK