repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-deref.C
blob
ce898abfcf1d1bd5a942d52e322c04343adc9a2c
1
// { dg-do compile { target c++11 } }
2
3
struct A
4
{
5
const int *p[2];
6
};
7
8
constexpr const int * f(const int *p) { return p; }
9
10
int main()
11
{
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
16
}