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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ext
/
typeof1.C
blob
a9c03b3ae60182ea92b1e212f2ff38fecd60a263
1
// Build don't link:
2
3
struct inttest {
4
int elem[1];
5
};
6
7
template <class T>
8
void F(T x)
9
{
10
typedef __typeof (x.elem[0]) dummy;
11
dummy i = 1;
12
}
13
14
int main() {
15
inttest x;
16
F(x);
17
}