aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vector18.C
blob: 402558ef93ab33ea70c77e9f71d1fe66cd46d15f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target c++11 } } */

typedef signed char __attribute__((vector_size(128) )) vec;

template <class A, class B>
auto f (A *a, B b) -> decltype (*a + b);

void f (...) {}

void g (vec *v, long long l)
{
  f (v, l);
}