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++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
dependent-expr7.C
blob
b2468203590e23903c81866d7d76c7a31f36eab1
1
// Origin PR c++/48574
2
// { dg-do compile }
3
4
struct A
5
{
6
virtual void foo();
7
};
8
9
template <typename T>
10
void
11
bar(T x)
12
{
13
A &b = *x;
14
b.foo ();
15
}
16
17
void
18
foo()
19
{
20
A a;
21
bar(&a);
22
}