aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/typeof5.C
blob: ef75f255cb480ed3aec8569d544057020000bd69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-options "" }

template <class T>
void test1() {
  int x = 0;
  const typeof(x) & t1 = x+0;
}

void test2() {
  int x = 0;
  const typeof(x) & t1 = x+0;
}

int main() {
  test1<int>();
  test2 ();
}