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
RISC-V: Remove testcase XFAIL
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
new12.C
blob
84eedf8adfd4f452c9551fb29dfe0a0c310a31b8
1
// PR c++/48500
2
3
struct linked_ptr {
4
};
5
template <typename T> linked_ptr make_linked_ptr(T* ptr);
6
struct Concrete;
7
struct NewedClass {
8
NewedClass(const Concrete& req){}
9
};
10
template<typename ArgT> void AddObjToChange(const ArgT& req) {
11
linked_ptr p = make_linked_ptr(new NewedClass(req));
12
}