summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/array13.C
blob: 3bc152ce4f87a67b410fffd5f4dc8ad3f8996e7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/20208
// { dg-do run }
// { dg-options "-O2" }

extern "C" void abort();

template <typename T>
inline void *Foo (T arg) { return &arg[0]; }

int main () {
  int bry[2];
  if (Foo<int[2]>(bry) != bry)
    abort();
}