aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ext/typeof1.C
blob: a9c03b3ae60182ea92b1e212f2ff38fecd60a263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Build don't link:

struct inttest {
  int elem[1];
};

template <class T>
void F(T x)
{
  typedef __typeof (x.elem[0]) dummy;
  dummy i = 1;
}

int main() {
  inttest x;
  F(x);
}