Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr59641.C

raw
1 // { dg-do compile { target c++11 } }
2 typedef int T __attribute__((vector_size(2*sizeof(int))));
3
4 void foo(T& r, const T& a, const T& b)
5 {
6 constexpr T c = a < b; // { dg-error "constant" }
7 r = c ? a : b;
8 }