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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
sizeof2.C
blob
76d1cf44c4e3801e50783e1c72e7ab46b5e55708
1
// { dg-do compile }
2
3
template<int size>
4
struct Foobar {
5
// Contents irrelevant
6
};
7
8
template <typename A>
9
struct Wrapper {
10
// Contents irrelevant
11
};
12
13
template <typename A>
14
Foobar<sizeof(Wrapper<A>)> *
15
compiler_bug (A)
16
{
17
return 0;
18
}
19
20
int main()
21
{
22
compiler_bug(1);
23
}