aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr103326.C
blob: 260e7da86e8bed40485d52bf0e44d15eb8b833a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do compile }
// { dg-require-effective-target c++11 }

using x86_64_v16qi [[gnu::__vector_size__ (16)]] = char;

template<typename T>
void foo()
{
  constexpr x86_64_v16qi zero{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
}

void foo2()
{
  foo<int>();
}