URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-deref.C] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-options -std=c++0x }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; // OKconstexpr int k = *A{{&i}}.p[0]; // OKconstexpr int l = *f(&i); // OK}
Go to most recent revision | Compare with Previous | Blame | View Log
