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
/
sizeof3.C
blob
7c9d0d2c9da22423db13d00850212d7de7f57a4c
1
// The call to f is not potentially evaluated (3.2), so f<int> is not used,
2
// so it should not be required.
3
4
template <class T>
5
T f (T)
6
{
7
typename T::X x;
8
}
9
10
int main()
11
{
12
int i = sizeof (f(0));
13
}