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
c++: constantness of call to function pointer [PR111703]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr34241.C
blob
0ea9cfc1a0c80c63d7268a75131d0b0d77fa415f
1
/* { dg-do compile } */
2
3
inline void *operator new (__SIZE_TYPE__, void *__p) throw ()
4
{
5
return __p;
6
}
7
struct A
8
{
9
A(int, double);
10
inline explicit A (int pattern, bool cs)
11
{
12
new (this) A (pattern, double(cs));
13
}
14
};
15
A test ()
16
{
17
const A a (42, true);
18
return a;
19
}